Эх сурвалжийг харах

Moving gunicorn config to separate file

Kirk Trombley 5 жил өмнө
parent
commit
10d2dd9f12

+ 2 - 2
server/Dockerfile

@@ -14,6 +14,6 @@ COPY requirements.txt ./
 
 RUN pip3 install -r requirements.txt
 
-COPY app.py db.py extra_api.py game_api.py sources.py lib.py ./
+COPY app.py db.py extra_api.py game_api.py sources.py lib.py gunicorn.conf.py ./
 
-CMD gunicorn --workers=1 --bind=0.0.0.0:5000 app:app
+CMD gunicorn app:app

+ 5 - 0
server/gunicorn.conf.py

@@ -0,0 +1,5 @@
+workers = 1
+threads = 4
+worker_tmp_dir = "/dev/shm"
+
+bind = "0.0.0.0:5000"