-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Procfile command for the web process to a shell script
This moves the Procfile command for the web process to a separate shell script to make it more maintainable and readable.
- Loading branch information
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |