Using gunicorn to run upto 4 workers. This should fix the problems of the whole program crashing.

This commit is contained in:
2022-04-16 07:57:18 +05:30
parent c494284517
commit 3eaf4cd41d
5 changed files with 125 additions and 1 deletions

2
.env
View File

@ -6,6 +6,8 @@ SQLALCHEMY_DATABASE_URI=postgresql://postgres:123456@localhost:5432/petty
MODULE_NAME=barker.main
PROJECT_NAME=barker
MAX_WORKERS=4
REDIS_HOST=localhost
REDIS_PORT=6379