2022-10-10 09:06:27 +00:00
|
|
|
. ./env
|
|
|
|
export DATABASE_URL="postgresql://postgres@postgres:5432"
|
|
|
|
export REDIS_URL="redis://redis:6379"
|
|
|
|
export PROXY_URL="http://opera-proxy:18080"
|
2022-10-04 19:48:52 +00:00
|
|
|
/etc/init.d/nginx start
|
|
|
|
cd ./chat
|
|
|
|
yarn install
|
|
|
|
yarn chat
|
|
|
|
cd ..
|
|
|
|
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 1 --reload -b 0.0.0.0:5000 --max-requests 30000 --max-requests-jitter 10000
|