update prod script,

This commit is contained in:
louiscklaw
2025-06-13 18:11:57 +08:00
parent d767108fcf
commit 08d6727dca
12 changed files with 53 additions and 3662 deletions

View File

@@ -43,6 +43,7 @@
"@next-auth/prisma-adapter": "^1.0.7",
"@prisma/adapter-pg": "^6.8.2",
"@prisma/client": "^5.6.0",
"@types/bcrypt": "^5.0.2",
"bcrypt": "^5.1.1",
"date-fns": "^4.1.0",
"dayjs": "^1.11.13",

View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
while true; do
yarn --dev
yarn dev
echo "restarting..."
sleep 1
done

View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -x
yarn db:push
npx nodemon --ext ts,tsx --exec "yarn tsc"
# yarn build

View File

@@ -0,0 +1,5 @@
#!/usr/bin/env zsh
set -x
npm run start

View File

@@ -11,8 +11,8 @@ services:
- 10001:8080
volumes:
- ../frontend:/app
working_dir: '/app'
command: './dev.sh'
working_dir: "/app"
command: "./scripts/20_prod.sh"
mobile:
image: 192.168.10.61:5000/hksingleparty_mobile
@@ -22,8 +22,8 @@ services:
- 10004:3000
volumes:
- ../mobile:/app
working_dir: '/app'
command: './dev.sh'
working_dir: "/app"
command: "./scripts/20_prod.sh"
cms_backend:
image: 192.168.10.61:5000/demo_minimal_kit_backend
@@ -36,8 +36,8 @@ services:
- 10003:5555
volumes:
- ../cms_backend:/app
working_dir: '/app'
command: './dev.sh'
working_dir: "/app"
command: "./scripts/20_prod.sh"
postgres:
image: postgres:14.1-alpine
@@ -45,6 +45,6 @@ services:
env_file:
- .env
expose:
- '5432'
- "5432"
volumes:
- db:/var/lib/postgresql/data

View File

@@ -3,7 +3,6 @@
yarn --dev
while true; do
# yarn tsc:print
yarn lint:print

View File

@@ -0,0 +1,3 @@
#!/usr/bin/env bash
yarn build

View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
yarn build
while true; do
yarn start
echo "restarting..."
sleep 1
done

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env zsh
#!/usr/bin/env bash
set -x
@@ -10,10 +10,7 @@ set -ex
npm run format
git add .
npm run build
git commit -m"build ok,"
echo "done"

View File

@@ -0,0 +1,5 @@
#!/usr/bin/env zsh
set -x
npm run start

File diff suppressed because it is too large Load Diff