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 = 'https://api.shinan.ir'
|
||||
VITE_TOKEN_NAME = 'sh_admin_token'
|
||||
VITE_REFRESH_TOKEN_NAME = 'sh_admin_refresh_token'
|
||||
VITE_TOKEN_NAME = 'shinan_admin_token'
|
||||
VITE_REFRESH_TOKEN_NAME = 'shinan_admin_refresh_token'
|
||||
@@ -3,7 +3,7 @@ name: deploy to danak
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- tablofajr
|
||||
- shinan
|
||||
|
||||
jobs:
|
||||
build_and_deploy:
|
||||
@@ -11,10 +11,8 @@ jobs:
|
||||
|
||||
env:
|
||||
DANAK_SERVER: "https://captain.dev.danakcorp.com"
|
||||
APP_TOKEN: 0c540850b77568a873eaf92399a54cc042fa1054a0336b7909ae8f42effe5971
|
||||
APP_NAME: shop-admin
|
||||
# APP_TOKEN: 111ac60c637716478be8ab8b888fd20baba808a10b0fc0c18bf788766883ec9e
|
||||
# APP_NAME: e-commerce-front
|
||||
APP_TOKEN: 0fbba2ce0112b82dbdb6e8d2d5f6b07db97e3074d2bb7cca6b81f8287e680bb9
|
||||
APP_NAME: shinan-admin
|
||||
GITHUB_TOKEN: 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
|
||||
|
||||
steps:
|
||||
|
||||
+8
-14
@@ -1,24 +1,18 @@
|
||||
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
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
COPY . ./
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
COPY . .
|
||||
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/nginx.con[f] /etc/nginx/conf.d/default.conf
|
||||
RUN cat /etc/nginx/conf.d/default.conf
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
||||
+2
-2
@@ -3,9 +3,9 @@
|
||||
|
||||
<head>
|
||||
<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" />
|
||||
<title>پنل مدیریت | فجر تابلو مرکزی</title>
|
||||
<title>پنل مدیریت | شینان</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 549 KiB |
+22
-1064
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 {
|
||||
--color-primary: #da2129;
|
||||
--color-primary: #a62186;
|
||||
--color-secondary: #f4f5f9;
|
||||
--color-border: #d0d0d0;
|
||||
--color-description: #888888;
|
||||
|
||||
Reference in New Issue
Block a user