update prod script,
This commit is contained in:
@@ -43,6 +43,7 @@
|
|||||||
"@next-auth/prisma-adapter": "^1.0.7",
|
"@next-auth/prisma-adapter": "^1.0.7",
|
||||||
"@prisma/adapter-pg": "^6.8.2",
|
"@prisma/adapter-pg": "^6.8.2",
|
||||||
"@prisma/client": "^5.6.0",
|
"@prisma/client": "^5.6.0",
|
||||||
|
"@types/bcrypt": "^5.0.2",
|
||||||
"bcrypt": "^5.1.1",
|
"bcrypt": "^5.1.1",
|
||||||
"date-fns": "^4.1.0",
|
"date-fns": "^4.1.0",
|
||||||
"dayjs": "^1.11.13",
|
"dayjs": "^1.11.13",
|
||||||
|
9
03_source/cms_backend/scripts/00_dev.sh
Executable file
9
03_source/cms_backend/scripts/00_dev.sh
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
yarn --dev
|
||||||
|
yarn dev
|
||||||
|
|
||||||
|
echo "restarting..."
|
||||||
|
sleep 1
|
||||||
|
done
|
12
03_source/cms_backend/scripts/10_build.sh
Executable file
12
03_source/cms_backend/scripts/10_build.sh
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
|
yarn db:push
|
||||||
|
|
||||||
|
npx nodemon --ext ts,tsx --exec "yarn tsc"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# yarn build
|
||||||
|
|
5
03_source/cms_backend/scripts/20_prod.sh
Executable file
5
03_source/cms_backend/scripts/20_prod.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
|
npm run start
|
@@ -11,8 +11,8 @@ services:
|
|||||||
- 10001:8080
|
- 10001:8080
|
||||||
volumes:
|
volumes:
|
||||||
- ../frontend:/app
|
- ../frontend:/app
|
||||||
working_dir: '/app'
|
working_dir: "/app"
|
||||||
command: './dev.sh'
|
command: "./scripts/20_prod.sh"
|
||||||
|
|
||||||
mobile:
|
mobile:
|
||||||
image: 192.168.10.61:5000/hksingleparty_mobile
|
image: 192.168.10.61:5000/hksingleparty_mobile
|
||||||
@@ -22,8 +22,8 @@ services:
|
|||||||
- 10004:3000
|
- 10004:3000
|
||||||
volumes:
|
volumes:
|
||||||
- ../mobile:/app
|
- ../mobile:/app
|
||||||
working_dir: '/app'
|
working_dir: "/app"
|
||||||
command: './dev.sh'
|
command: "./scripts/20_prod.sh"
|
||||||
|
|
||||||
cms_backend:
|
cms_backend:
|
||||||
image: 192.168.10.61:5000/demo_minimal_kit_backend
|
image: 192.168.10.61:5000/demo_minimal_kit_backend
|
||||||
@@ -36,8 +36,8 @@ services:
|
|||||||
- 10003:5555
|
- 10003:5555
|
||||||
volumes:
|
volumes:
|
||||||
- ../cms_backend:/app
|
- ../cms_backend:/app
|
||||||
working_dir: '/app'
|
working_dir: "/app"
|
||||||
command: './dev.sh'
|
command: "./scripts/20_prod.sh"
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:14.1-alpine
|
image: postgres:14.1-alpine
|
||||||
@@ -45,6 +45,6 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
expose:
|
expose:
|
||||||
- '5432'
|
- "5432"
|
||||||
volumes:
|
volumes:
|
||||||
- db:/var/lib/postgresql/data
|
- db:/var/lib/postgresql/data
|
||||||
|
@@ -3,7 +3,6 @@
|
|||||||
yarn --dev
|
yarn --dev
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
|
|
||||||
# yarn tsc:print
|
# yarn tsc:print
|
||||||
yarn lint:print
|
yarn lint:print
|
||||||
|
|
3
03_source/frontend/scripts/10_build.sh
Executable file
3
03_source/frontend/scripts/10_build.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
yarn build
|
10
03_source/frontend/scripts/20_prod.sh
Executable file
10
03_source/frontend/scripts/20_prod.sh
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
yarn build
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
yarn start
|
||||||
|
|
||||||
|
echo "restarting..."
|
||||||
|
sleep 1
|
||||||
|
done
|
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
@@ -10,10 +10,7 @@ set -ex
|
|||||||
|
|
||||||
npm run format
|
npm run format
|
||||||
|
|
||||||
git add .
|
|
||||||
|
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
git commit -m"build ok,"
|
|
||||||
|
|
||||||
echo "done"
|
echo "done"
|
5
03_source/mobile/scripts/20_prod.sh
Executable file
5
03_source/mobile/scripts/20_prod.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
|
npm run start
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user