Add a release steps file (#2240)
This commit is contained in:
Родитель
1bb1491fb3
Коммит
253f5b0c6d
2
Procfile
2
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
|
||||
|
|
|
@ -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
|
Загрузка…
Ссылка в новой задаче