2013-08-16 14:55:28 +04:00
|
|
|
{{cookiecutter.project_name}}
|
|
|
|
==============================
|
|
|
|
|
|
|
|
{{cookiecutter.description}}
|
|
|
|
|
|
|
|
|
2013-08-29 10:57:20 +04:00
|
|
|
LICENSE: BSD
|
2013-08-19 22:32:07 +04:00
|
|
|
|
|
|
|
Deployment
|
|
|
|
------------
|
|
|
|
|
2013-09-26 21:27:05 +04:00
|
|
|
Run these commands to deploy the project to Heroku::
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
$ heroku create
|
|
|
|
$ heroku addons:add heroku-postgresql:dev
|
|
|
|
$ heroku addons:add pgbackups
|
|
|
|
$ heroku addons:add sendgrid:starter
|
|
|
|
$ heroku addons:add memcachier:dev
|
|
|
|
$ heroku pg:promote HEROKU_POSTGRESQL_COLOR
|
|
|
|
$ heroku config:add DJANGO_CONFIGURATION=Production
|
|
|
|
$ heroku config:add DJANGO_SECRET_KEY=RANDOM_SECRET_KEY
|
|
|
|
$ heroku config:add DJANGO_AWS_ACCESS_KEY_ID=YOUR_ID
|
|
|
|
$ heroku config:add DJANGO_AWS_SECRET_ACCESS_KEY=YOUR_KEY
|
|
|
|
$ 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
|
2013-08-20 00:19:36 +04:00
|
|
|
|
|
|
|
Run this script: (TODO - automate this)
|
|
|
|
|
|
|
|
.. code-block:: python
|
|
|
|
|
|
|
|
from django.contrib.sites.models import Site
|
|
|
|
site = Site.objects.get()
|
2013-08-29 12:04:50 +04:00
|
|
|
site.domain = "{{cookiecutter.domain_name}}"
|
2013-08-20 18:03:33 +04:00
|
|
|
site.name = "{{cookiecutter.project_name}}"
|
2013-08-20 00:19:36 +04:00
|
|
|
site.save()
|