mirror of
https://github.com/Balshgit/gpt_chat_bot.git
synced 2026-02-03 11:40:39 +03:00
microservices are able to run (#5)
This commit is contained in:
@@ -6,8 +6,9 @@ if [[ "${START_WITH_WEBHOOK}" == "true" ]]
|
||||
then
|
||||
echo "Starting bot in webhook mode..."
|
||||
gunicorn main:create_app \
|
||||
--bind ${WEBAPP_HOST}:${WEBAPP_PORT} \
|
||||
--worker-class aiohttp.GunicornWebWorker \
|
||||
-- workers ${WORKERS_COUNT} \
|
||||
--bind ${APP_HOST}:${APP_PORT} \
|
||||
--worker-class uvicorn.workers.UvicornWorker \
|
||||
--timeout 150 \
|
||||
--max-requests 2000 \
|
||||
--max-requests-jitter 400
|
||||
|
||||
11
scripts/start-chat.sh
Normal file
11
scripts/start-chat.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#! /bin/bash
|
||||
|
||||
echo "starting chat"
|
||||
|
||||
gunicorn run:create_app \
|
||||
-- workers ${WORKERS_COUNT} \
|
||||
--bind ${APP_HOST}:${APP_PORT} \
|
||||
--worker-class uvicorn.workers.UvicornWorker \
|
||||
--timeout 150 \
|
||||
--max-requests 2000 \
|
||||
--max-requests-jitter 400
|
||||
Reference in New Issue
Block a user