diff --git a/README.md b/README.md index 0eb8972..c4b3ccd 100644 --- a/README.md +++ b/README.md @@ -20,3 +20,11 @@ - Run `python manage.py migrate` to set up the tables in the DB - Run `python manage.py runserver` to start the server + +## Deploy to Heroku + +- Run `heroku create` to create heroku app +- Copy url of heroku app created (e.g. `blooming-fjord-06511.herokuapp.com`) and add it to `ALLOWED_HOSTS` in `django_rest_api/settings.py` + e.g. `ALLOWED_HOSTS = ['localhost', 'desolate-thicket-29906.herokuapp.com']` +- add/commit to git. Then run `git push heroku master` +- run `heroku run bash` to enter bash and then run `python manage.py migrate` and `python manage.py createsuperuser` (follow prompts) and then `exit`