Giter Site home page Giter Site logo

heroku-nsot's Introduction

heroku-nsot

Deploy NSoT to Heroku with ease.

Deploying

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.

  1. Clone this repo and change to the directory:

    $ git clone https://github.com/jathanism/heroku-nsot.git
    $ cd heroku-nsot
    
  2. Add the heroku Git remote:

    $ git remote add heroku https://git.heroku.com/yourappname.git
    
  3. Push this repo to Heroku:

    $ git push heroku master
    
  4. After it's deployed, create a superuser:

    $ heroku run 'nsot-server --config=settings.py createsuperuser'
    
  5. Generate a SECRET_KEY to make your install more secure:

    $ heroku config:set SECRET_KEY=`openssl rand -base64 32`
    
  6. Fire up your web browser and use the API interface to login with your superuser:

    https://yourappname.herokuapp.com/api/api-auth/login/'

End.

Upgrading

So you want to update NSoT to the latest version on Heroku? No problem:

  1. Install the heroku-repo plugin:

    $ heroku plugins:install https://github.com/heroku/heroku-repo.git
    
  2. Reset your repo state and do a fresh push:

    $ heroku repo:reset --app=yourappname
    $ git push heroku master
    
  3. Restart your dyno:

    $ heroku ps:scale web=1
    

To Do

  • Nothing at this time.

heroku-nsot's People

Contributors

jathanism avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.