Deploy NSoT to Heroku with ease.
These instructions assume that you know your way around Heroku and already have the heroku-toolbelt installed.
You'll need a fresh a Heroku app with the Heroku Postgres add-on enabled.
Clone this repo and change to the directory:
$ git clone https://github.com/jathanism/heroku-nsot.git $ cd heroku-nsot
Add the
heroku
Git remote:$ git remote add heroku https://git.heroku.com/yourappname.git
Push this repo to Heroku:
$ git push heroku master
After it's deployed, create a superuser:
$ heroku run 'nsot-server --config=settings.py createsuperuser'
Generate a
SECRET_KEY
to make your install more secure:$ heroku config:set SECRET_KEY=`openssl rand -base64 32`
Fire up your web browser and use the API interface to login with your superuser:
End.
So you want to update NSoT to the latest version on Heroku? No problem:
Install the heroku-repo plugin:
$ heroku plugins:install https://github.com/heroku/heroku-repo.git
Reset your repo state and do a fresh push:
$ heroku repo:reset --app=yourappname $ git push heroku master
Restart your dyno:
$ heroku ps:scale web=1
- Nothing at this time.