Skip to content

Commit

Permalink
Add a release steps file (#2240)
Browse files Browse the repository at this point in the history
  • Loading branch information
patjouk committed Nov 22, 2018
1 parent 1bb1491 commit 253f5b0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Procfile
@@ -1,2 +1,2 @@
release: cd network-api && python ./manage.py migrate --no-input && python ./manage.py block_inventory && python ./manage.py sync_page_translation_fields && python ./manage.py update_translation_fields && python ./manage.py clear_cache
release: ./release-steps.sh
web: cd network-api && gunicorn networkapi.wsgi:application
16 changes: 16 additions & 0 deletions release-steps.sh
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

cd network-api

# Django Migrations
python ./manage.py migrate --no-input

# Wagtail block inventory
python ./manage.py block_inventory

# Wagtail translations
python ./manage.py sync_page_translation_fields
python ./manage.py update_translation_fields

# Clear cache for BuyersGuide
python ./manage.py clear_cache

0 comments on commit 253f5b0

Please sign in to comment.