mirror of
https://github.com/Balshgit/mosgortrans.git
synced 2026-02-03 11:20:56 +03:00
remove aiogram webhook method add gunicorn logs
This commit is contained in:
@@ -4,4 +4,14 @@
|
||||
echo "starting the bot"
|
||||
cd /opt/mosgortrans \
|
||||
&& source /home/balsh/.cache/pypoetry/virtualenvs/mosgortrans-3eZxMcY3-py3.10/bin/activate \
|
||||
&& gunicorn app.main:create_app --bind prod-server.lan:8084 --worker-class aiohttp.GunicornWebWorker
|
||||
&& gunicorn app.main:create_app \
|
||||
--bind prod-server.lan:8084 \
|
||||
--worker-class aiohttp.GunicornWebWorker \
|
||||
--timeout 150 \
|
||||
--max-requests 2000 \
|
||||
--max-requests-jitter 400 \
|
||||
--chdir "/opt/mosgortrans/logs" \
|
||||
--log-level info \
|
||||
--error-logfile "/opt/mosgortrans/logs" \
|
||||
--worker-tmp-dir '/tmp/shm' \
|
||||
--pid "/opt/mosgortrans/logs/gunicorn_pid"
|
||||
Reference in New Issue
Block a user