ci: add storage_server build and PM2 process management to deploy workflow
All checks were successful
Deploy on Master Change / deploy (push) Successful in 1m2s
All checks were successful
Deploy on Master Change / deploy (push) Successful in 1m2s
This commit is contained in:
@@ -51,13 +51,21 @@ jobs:
|
||||
VITE_API_BASE=https://sv.rikkeiraia.org/api npm run build
|
||||
cd ..
|
||||
|
||||
echo "Build storage server..."
|
||||
cd storage_server
|
||||
npm install
|
||||
npm run build
|
||||
pm2 delete storage_server || true
|
||||
pm2 start dist/main.js --name storage_server
|
||||
cd ..
|
||||
|
||||
echo "Build server backend..."
|
||||
cd server
|
||||
go build -o serverlinux main.go
|
||||
|
||||
echo "Khởi động lại PM2..."
|
||||
pm2 delete raia_v3_server || pm2 delete serverlinux || true
|
||||
pm2 start ./serverlinux --name raia_v3_server
|
||||
cd ..
|
||||
|
||||
pm2 save # lưu lại trạng thái pm2
|
||||
|
||||
echo "Deploy thành công!"
|
||||
|
||||
Reference in New Issue
Block a user