From abd0850dc420cffd935e6b9ef5aa728ed5455fa7 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 14 Aug 2022 04:46:01 +0200 Subject: [PATCH] make chat worker not detached anymore --- startup.sh | 1 - startup_chat.sh | 4 ++++ ubuntu_setup.sh | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 startup_chat.sh diff --git a/startup.sh b/startup.sh index 451844c55..0ff2a3980 100644 --- a/startup.sh +++ b/startup.sh @@ -1,5 +1,4 @@ cd /rDrama git pull . /env -gunicorn files.__main__:app load_chat -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -w 1 -b 0.0.0.0:5001 --max-requests 30000 --max-requests-jitter 30000 -D gunicorn files.__main__:app -k gevent -w 3 --reload -b 0.0.0.0:5000 --max-requests 30000 --max-requests-jitter 10000 \ No newline at end of file diff --git a/startup_chat.sh b/startup_chat.sh new file mode 100644 index 000000000..b61dc982e --- /dev/null +++ b/startup_chat.sh @@ -0,0 +1,4 @@ +cd /rDrama +git pull +. /env +gunicorn files.__main__:app load_chat -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -w 1 -b 0.0.0.0:5001 --max-requests 30000 --max-requests-jitter 30000 \ No newline at end of file diff --git a/ubuntu_setup.sh b/ubuntu_setup.sh index 5ef206847..e96c4f3c2 100644 --- a/ubuntu_setup.sh +++ b/ubuntu_setup.sh @@ -9,6 +9,7 @@ sed -i 's/^/export /g;s/=/="/g;s/$/"/g' /env . /env cp ./startup.sh /s +cp ./startup_chat.sh /s2 apt -y update apt -y upgrade