indexden is now optional
[oweals/karmaworld.git] / README.heroku
1 Checkout the karmanotes repository locally.
2
3 Create Heroku app from either the web interface or the CLI. See Heroku
4 documentation for more information at 
5 `https://devcenter.heroku.com/articles/getting-started-with-django`
6
7 From the settings page for the Heroku app, find the Git URL and copy it.
8
9 Install the Heroku CLI. Make sure to configure the Heroku CLI tool with `heroku login`.
10
11 In the karmanotes repository:
12 `git remote add my-heroku-dev git@heroku.com:<your-project-name>.git`
13
14 Create a Heroku database either from the web interface or the CLI by adding
15 a Postgres Add-On to the Heroku App. Look for the Dev Plan (its free). Once
16 created, click through the add-on until the connection settings are found
17 for the app's database. Keep track of URL in the connection settings for the
18 configuration step. It'll be pasted into the `DATABASE_URL` environment
19 variable.
20
21 Configure the application by copying `${project_root}/.env.example` to `${project_root}/.env` and edit it appropriately for all external dependencies.
22
23 Push the configuration to Heroku by running the handy script. `python export_env_to_heroku.py`
24
25 Push the app to Heroku with git. `git push my-heroku-dev master`