-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from uktrade/develop
hotfix - only run fixtures in instance 0
- Loading branch information
Showing
3 changed files
with
22 additions
and
2 deletions.
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,3 +1,3 @@ | ||
web: cd trade_remedies_api && python ./manage.py migrate && python ./manage.py resetsecurity && python ./manage.py adminuser && python ./manage.py loaddata core/fixtures/*.json && python ./manage.py loaddata security/fixtures/*.json && python ./manage.py loaddata organisations/fixtures/*.json && python ./manage.py loaddata cases/fixtures/*.json && python ./manage.py load_sysparams && python ./manage.py s3credentials && python ./manage.py notify_env && python ./manage.py collectstatic --noinput && gunicorn trade_remedies_api.wsgi --bind 0.0.0.0:$API_PORT --config trade_remedies_api/gunicorn.py | ||
web: scripts/entry.sh | ||
celery_worker: cd trade_remedies_api && celery -A trade_remedies_api worker -l $CELERY_LOGLEVEL | ||
celery_beat: cd trade_remedies_api && celery -A trade_remedies_api beat -l $CELERY_LOGLEVEL |
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,20 @@ | ||
#!/bin/bash -e | ||
|
||
if [ "$INSTANCE_INDEX" == 0 ]; then | ||
cd ${HOME}/trade_remedies_api | ||
python ./manage.py migrate | ||
python ./manage.py resetsecurity | ||
python ./manage.py adminuser | ||
python ./manage.py loaddata core/fixtures/*.json | ||
python ./manage.py loaddata security/fixtures/*.json | ||
python ./manage.py loaddata organisations/fixtures/*.json | ||
python ./manage.py loaddata cases/fixtures/*.json | ||
python ./manage.py load_sysparams | ||
python ./manage.py s3credentials | ||
python ./manage.py notify_env | ||
python ./manage.py collectstatic --noinput | ||
fi | ||
|
||
cd ${HOME}/trade_remedies_api | ||
gunicorn trade_remedies_api.wsgi --bind 0.0.0.0:$API_PORT --config trade_remedies_api/gunicorn.py | ||
|
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 +1 @@ | ||
__version__ = "1.5.4" | ||
__version__ = "1.5.5" |