mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-30 05:24:01 +03:00
Merge pull request #321 from bogdal/deploy-to-heroku-button
Add heroku configuration file
This commit is contained in:
commit
87f02cdf4d
|
@ -206,6 +206,9 @@ We providing tools and instructions for deploying using Docker and Heroku.
|
||||||
Heroku
|
Heroku
|
||||||
^^^^^^
|
^^^^^^
|
||||||
|
|
||||||
|
.. image:: https://www.herokucdn.com/deploy/button.png
|
||||||
|
:target: https://heroku.com/deploy
|
||||||
|
|
||||||
Run these commands to deploy the project to Heroku:
|
Run these commands to deploy the project to Heroku:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
30
{{cookiecutter.repo_name}}/app.json
Normal file
30
{{cookiecutter.repo_name}}/app.json
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{
|
||||||
|
"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_AWS_ACCESS_KEY_ID": "",
|
||||||
|
"DJANGO_AWS_SECRET_ACCESS_KEY": "",
|
||||||
|
"DJANGO_AWS_STORAGE_BUCKET_NAME": "",
|
||||||
|
"DJANGO_MAILGUN_SERVER_NAME": "",
|
||||||
|
"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"
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user