Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7f56e58dee | |||
| 3f9a2072ea | |||
| 778223a550 | |||
| 814784b9a8 | |||
| 234256f89c |
@@ -0,0 +1,12 @@
|
|||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
dist-ssr
|
||||||
|
.git
|
||||||
|
.github
|
||||||
|
*.md
|
||||||
|
.env
|
||||||
|
.env.*
|
||||||
|
.vscode
|
||||||
|
.idea
|
||||||
|
.DS_Store
|
||||||
|
*.log
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
VITE_BASE_URL = 'https://api.fajrtabloshop.com'
|
VITE_BASE_URL = 'https://api.shinan.ir'
|
||||||
# VITE_BASE_URL = 'http://192.168.99.235:4000'
|
# VITE_BASE_URL = 'http://192.168.99.235:4000'
|
||||||
|
|
||||||
# VITE_BASE_URL = 'https://api.shinan.ir'
|
# VITE_BASE_URL = 'https://api.shinan.ir'
|
||||||
VITE_TOKEN_NAME = 'sh_admin_token'
|
VITE_TOKEN_NAME = 'shinan_admin_token'
|
||||||
VITE_REFRESH_TOKEN_NAME = 'sh_admin_refresh_token'
|
VITE_REFRESH_TOKEN_NAME = 'shinan_admin_refresh_token'
|
||||||
@@ -3,7 +3,7 @@ name: deploy to danak
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- tablofajr
|
- shinan
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_and_deploy:
|
build_and_deploy:
|
||||||
@@ -11,10 +11,8 @@ jobs:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
DANAK_SERVER: "https://captain.dev.danakcorp.com"
|
DANAK_SERVER: "https://captain.dev.danakcorp.com"
|
||||||
APP_TOKEN: 0c540850b77568a873eaf92399a54cc042fa1054a0336b7909ae8f42effe5971
|
APP_TOKEN: 0fbba2ce0112b82dbdb6e8d2d5f6b07db97e3074d2bb7cca6b81f8287e680bb9
|
||||||
APP_NAME: shop-admin
|
APP_NAME: shinan-admin
|
||||||
# APP_TOKEN: 111ac60c637716478be8ab8b888fd20baba808a10b0fc0c18bf788766883ec9e
|
|
||||||
# APP_NAME: e-commerce-front
|
|
||||||
GITHUB_TOKEN: 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
|
GITHUB_TOKEN: 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
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
+7
-13
@@ -1,23 +1,17 @@
|
|||||||
FROM node:20-alpine AS builder
|
FROM node:20-alpine AS builder
|
||||||
|
|
||||||
# Install tzdata to support timezone settings
|
|
||||||
RUN apk add --no-cache tzdata
|
|
||||||
|
|
||||||
# Set the timezone to Asia/Tehran
|
|
||||||
RUN cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime && echo "Asia/Tehran" > /etc/timezone
|
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY package*.json ./
|
|
||||||
RUN npm install
|
COPY package.json package-lock.json ./
|
||||||
COPY . ./
|
RUN npm ci
|
||||||
|
|
||||||
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM nginx:stable-alpine AS production-stage
|
FROM nginx:stable-alpine AS production
|
||||||
|
|
||||||
COPY --from=builder /build/dist /usr/share/nginx/html
|
COPY --from=builder /build/dist /usr/share/nginx/html
|
||||||
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
COPY --from=builder /build/nginx.con[f] /etc/nginx/conf.d/default.conf
|
|
||||||
RUN cat /etc/nginx/conf.d/default.conf
|
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -3,9 +3,9 @@
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>پنل مدیریت | فجر تابلو مرکزی</title>
|
<title>پنل مدیریت | شینان</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 549 KiB |
+21
-1063
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 550 KiB |
+1
-1
@@ -33,7 +33,7 @@ textarea::placeholder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@theme {
|
@theme {
|
||||||
--color-primary: #da2129;
|
--color-primary: #a62186;
|
||||||
--color-secondary: #f4f5f9;
|
--color-secondary: #f4f5f9;
|
||||||
--color-border: #d0d0d0;
|
--color-border: #d0d0d0;
|
||||||
--color-description: #888888;
|
--color-description: #888888;
|
||||||
|
|||||||
Reference in New Issue
Block a user