instructions

master
Matt Huntington 5 years ago
parent 911010a22a
commit 0e2b71227f

@ -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`

Loading…
Cancel
Save