mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-11 20:28:01 +03:00
6ef60301d1
When using the one-click deployment to Heroku the building process fails if the app uses NewRelic.
39 lines
1.2 KiB
JSON
39 lines
1.2 KiB
JSON
{
|
|
"name": "{{cookiecutter.repo_name}}",
|
|
"description": "{{cookiecutter.description}}",
|
|
"env": {
|
|
"BUILDPACK_URL": "https://github.com/heroku/heroku-buildpack-python",
|
|
"DJANGO_SETTINGS_MODULE": "config.settings.production",
|
|
"DJANGO_SECRET_KEY": {
|
|
"description": "A secret key for verifying the integrity of signed cookies.",
|
|
"generator": "secret"
|
|
},
|
|
"DJANGO_ALLOWED_HOSTS": {
|
|
"description": "Comma-separated list of hosts",
|
|
"value": ".herokuapp.com"
|
|
},
|
|
"DJANGO_ADMIN_URL": {
|
|
"description": "A secret URL for the Django admin",
|
|
"generator": "secret"
|
|
},
|
|
"DJANGO_AWS_ACCESS_KEY_ID": "",
|
|
"DJANGO_AWS_SECRET_ACCESS_KEY": "",
|
|
"DJANGO_AWS_STORAGE_BUCKET_NAME": "",
|
|
"DJANGO_MAILGUN_SERVER_NAME": "",
|
|
{% if cookiecutter.use_newrelic == "y" -%}
|
|
"NEW_RELIC_LICENSE_KEY": "",
|
|
"NEW_RELIC_APP_NAME": "",
|
|
{%- endif %}
|
|
"DJANGO_MAILGUN_API_KEY": ""{% if cookiecutter.use_sentry == "y" -%},
|
|
"DJANGO_SENTRY_DSN": ""{%- endif %}
|
|
},
|
|
"scripts": {
|
|
"postdeploy": "python manage.py migrate"
|
|
},
|
|
"addons": [
|
|
"heroku-postgresql:hobby-dev",
|
|
"heroku-redis:hobby-dev",
|
|
"mailgun"
|
|
]
|
|
}
|