mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-10 16:12:29 +03:00
clean up the docs
This commit is contained in:
parent
31e7456cbc
commit
00da531b06
|
@ -1,29 +1,24 @@
|
|||
Deploy
|
||||
========
|
||||
|
||||
From within your project's directory, run these commands to deploy the project to Heroku::
|
||||
|
||||
.. code-block:: bash
|
||||
From within your project's directory, run this command to create a Heroku app::
|
||||
|
||||
$ heroku create {{cookiecutter.project_name}}
|
||||
Creating {{cookiecutter.project_name}}... done, stack is cedar
|
||||
http://{{cookiecutter.project_name}}.herokuapp.com/ | git@heroku.com:{{cookiecutter.project_name}}.git
|
||||
|
||||
$ git init
|
||||
Initialized empty Git repository in /path/to/your/project/{{cookiecutter.project_name}}/.git/
|
||||
If you haven't cloned the project from an existing git repo, then you need to initialize it::
|
||||
|
||||
$ cd {{cookiecutter.repo_name}}
|
||||
$ git init
|
||||
Initialized empty Git repository in /path/to/your/project/{{cookiecutter.repo_name}}/.git/
|
||||
|
||||
Add the Heroku git repo as a remote, so that we can push to it.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ git remote add heroku git@heroku.com:{{cookiecutter.project_name}}.git
|
||||
|
||||
|
||||
Add a PostgreSQL database. Note that you will probably get a color other than "GOLD". This is normal.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ heroku addons:add heroku-postgresql:dev
|
||||
Adding heroku-postgresql:dev on {{cookiecutter.project_name}}... done, v3 (free)
|
||||
Attached as HEROKU_POSTGRESQL_GOLD_URL
|
||||
|
@ -33,8 +28,6 @@ Add a PostgreSQL database. Note that you will probably get a color other than "G
|
|||
|
||||
Add pgbackups to handle backups of the PostgreSQL database::
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ heroku addons:add pgbackups
|
||||
Adding pgbackups on {{cookiecutter.project_name}}... done, v4 (free)
|
||||
You can now use "pgbackups" to backup your databases or import an external backup.
|
||||
|
|
Loading…
Reference in New Issue
Block a user