mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-12-01 14:04:04 +03:00
Make the deploy to Heroku instructions nicely formatted.
This commit is contained in:
parent
057821303f
commit
337269648d
|
@ -9,21 +9,25 @@ LICENSE: BSD
|
||||||
Deployment
|
Deployment
|
||||||
------------
|
------------
|
||||||
|
|
||||||
* heroku create
|
Run these commands to deploy the project to Heroku::
|
||||||
* heroku addons:add heroku-postgresql:dev
|
|
||||||
* heroku addons:add pgbackups
|
.. code-block:: bash
|
||||||
* heroku addons:add sendgrid:starter
|
|
||||||
* heroku addons:add memcachier:dev
|
$ heroku create
|
||||||
* heroku pg:promote HEROKU_POSTGRESQL_COLOR
|
$ heroku addons:add heroku-postgresql:dev
|
||||||
* heroku config:add DJANGO_CONFIGURATION=Production
|
$ heroku addons:add pgbackups
|
||||||
* heroku config:add DJANGO_SECRET_KEY=RANDOM_SECRET_KEY
|
$ heroku addons:add sendgrid:starter
|
||||||
* heroku config:add DJANGO_AWS_ACCESS_KEY_ID=YOUR_ID
|
$ heroku addons:add memcachier:dev
|
||||||
* heroku config:add DJANGO_AWS_SECRET_ACCESS_KEY=YOUR_KEY
|
$ heroku pg:promote HEROKU_POSTGRESQL_COLOR
|
||||||
* heroku config:add DJANGO_AWS_STORAGE_BUCKET_NAME=BUCKET
|
$ heroku config:add DJANGO_CONFIGURATION=Production
|
||||||
* git push heroku master
|
$ heroku config:add DJANGO_SECRET_KEY=RANDOM_SECRET_KEY
|
||||||
* heroku run python {{cookiecutter.repo_name}}/manage.py syncdb --noinput --settings=config.settings
|
$ heroku config:add DJANGO_AWS_ACCESS_KEY_ID=YOUR_ID
|
||||||
* heroku run python {{cookiecutter.repo_name}}/manage.py migrate --settings=config.settings
|
$ heroku config:add DJANGO_AWS_SECRET_ACCESS_KEY=YOUR_KEY
|
||||||
* heroku run python {{cookiecutter.repo_name}}/manage.py collectstatic --settings=config.settings
|
$ heroku config:add DJANGO_AWS_STORAGE_BUCKET_NAME=BUCKET
|
||||||
|
$ git push heroku master
|
||||||
|
$ heroku run python {{cookiecutter.repo_name}}/manage.py syncdb --noinput --settings=config.settings
|
||||||
|
$ heroku run python {{cookiecutter.repo_name}}/manage.py migrate --settings=config.settings
|
||||||
|
$ heroku run python {{cookiecutter.repo_name}}/manage.py collectstatic --settings=config.settings
|
||||||
|
|
||||||
Run this script: (TODO - automate this)
|
Run this script: (TODO - automate this)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user