Skip to content

Commit

Permalink
Move Procfile command for the web process to a shell script
Browse files Browse the repository at this point in the history
This moves the Procfile command for the web process to a separate shell script to make it more maintainable and readable.
  • Loading branch information
reupen committed Oct 11, 2019
1 parent 834c3ba commit 7bfdfab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
web: python manage.py distributed_migrate --noinput && python manage.py init_es && gunicorn config.wsgi --config config/gunicorn.py
web: ./web.sh
celeryworker: celery worker -A config -l info -Q celery
celerylongrunning: celery worker -A config -l info -O fair --prefetch-multiplier 1 -Q long-running
celerybeat: celery beat -A config -l info
9 changes: 9 additions & 0 deletions web.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

# Start-up script for the web process, primarily for GOV.UK PaaS (see the Procfile)

set -xe

./manage.py distributed_migrate --noinput
./manage.py init_es
gunicorn config.wsgi --config config/gunicorn.py

0 comments on commit 7bfdfab

Please sign in to comment.