Kaynağa Gözat

Moving gunicorn config to separate file

Kirk Trombley 5 yıl önce
ebeveyn
işleme
10d2dd9f12
2 değiştirilmiş dosya ile 7 ekleme ve 2 silme
  1. 2 2
      server/Dockerfile
  2. 5 0
      server/gunicorn.conf.py

+ 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"