README.heroku 1.2 KB

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