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