mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
build: Replace pm2 with Supervisor
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
SSR_PATH=/opt/sqlbot/g2-ssr
|
||||
APP_PATH=/opt/sqlbot/app
|
||||
PM2_CMD_PATH=$SSR_PATH/node_modules/pm2/bin/pm2
|
||||
|
||||
/usr/local/bin/docker-entrypoint.sh postgres &
|
||||
sleep 5
|
||||
wait-for-it 127.0.0.1:5432 --timeout=120 --strict -- echo -e "\033[1;32mPostgreSQL started.\033[0m"
|
||||
|
||||
nohup $PM2_CMD_PATH start $SSR_PATH/app.js &
|
||||
#nohup node $SSR_PATH/app.js &
|
||||
nohup /usr/bin/supervisord -c /etc/supervisor/supervisord.conf &
|
||||
|
||||
nohup uvicorn main:mcp_app --host 0.0.0.0 --port 8001 --proxy-headers --forwarded-allow-ips='*' &
|
||||
|
||||
|
||||
Reference in New Issue
Block a user