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