mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-14 21:57:09 +03:00
1c5c4e52c0
heroku now has a new feature for running tasks as part of deployment. Perfect for automatic migrations. https://devcenter.heroku.com/articles/release-phase#specifying-release-phase-tasks
6 lines
208 B
Plaintext
6 lines
208 B
Plaintext
release: python manage.py migrate
|
|
web: gunicorn config.wsgi:application
|
|
{% if cookiecutter.use_celery == "y" -%}
|
|
worker: celery worker --app={{cookiecutter.project_slug}}.taskapp --loglevel=info
|
|
{%- endif %}
|