From c7c2c19d5b7effac27b22d536ef40cd8fca21445 Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Thu, 15 Dec 2022 02:55:03 +0530 Subject: [PATCH] build: remove migration run from Dockerfile --- Dockerfile | 1 - supervisor/service_script.conf | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b9d448a3b..efdcfbe68 100644 --- a/Dockerfile +++ b/Dockerfile @@ -129,7 +129,6 @@ USER captain # Expose container port and run entry point script EXPOSE 8000 -RUN python manage.py migrate RUN apk --update add supervisor diff --git a/supervisor/service_script.conf b/supervisor/service_script.conf index a635b4907..d8816f048 100644 --- a/supervisor/service_script.conf +++ b/supervisor/service_script.conf @@ -14,7 +14,7 @@ stdout_logfile_maxbytes = 0 [program:backend] directory=/app -command= gunicorn plane.wsgi -k gthread --workers 8 --bind 0.0.0.0:8000 --config gunicorn.config.py --max-requests 10000 --max-requests-jitter 1000 --access-logfile - +command= ./bin/takeoff autostart=true autorestart=true stderr_logfile=/dev/stdout @@ -24,7 +24,7 @@ stdout_logfile_maxbytes = 0 [program:worker] directory=/app -command= python manage.py rqworker +command= ./bin/worker autostart=true autorestart=true stderr_logfile=/dev/stdout