Skip to content

Commit 6c19e57

Browse files
committed
feat: pm2 start ssr service
1 parent e5fc5f8 commit 6c19e57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

start.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
SSR_PATH=/opt/sqlbot/g2-ssr
22
APP_PATH=/opt/sqlbot/app
3+
PM2_CMD_PATH=$SSR_PATH/node_modules/pm2/bin/pm2
34

45
/usr/local/bin/docker-entrypoint.sh postgres &
56
sleep 5
67
wait-for-it 127.0.0.1:5432 --timeout=120 --strict -- echo -e "\033[1;32mPostgreSQL started.\033[0m"
78

8-
nohup pm2 start $SSR_PATH/app.js &
9+
nohup .$PM2_CMD_PATH start $SSR_PATH/app.js &
910

1011
nohup uvicorn main:mcp_app --host 0.0.0.0 --port 8001 &
1112

0 commit comments

Comments
 (0)