mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-22 01:26:57 +03:00
ec78d9ce97
Automatically run migrations on deployments to Heroku. Advantages include deployments are rolled-back if a migration fails, preventing broken applications due to failed migrations, no time between when application is released and database is migrated, and removes risk of forgetting to manually run migrations.
6 lines
203 B
Plaintext
6 lines
203 B
Plaintext
release: ./manage.py migrate
|
|
web: gunicorn config.wsgi:application
|
|
{% if cookiecutter.use_celery == "y" -%}
|
|
worker: celery worker --app={{cookiecutter.project_slug}}.taskapp --loglevel=info
|
|
{%- endif %}
|