Deployment

Build and deploy a node express server to Heroku

  1. Move to project directory and Initialize a git repo and commit your work.

// in terminal
demo$ git init
demo$ git add -am “Initial commit”

2. Create account and login on Heroku.

3. Create an app, and push your work to Heroku.

// in terminal
demo$ heroku login
// follow prompts to enter your Heroku login credentials
demo$ heroku create 
// you should see your server’s url after this has finished.
demo$ git push heroku master

4. Open your brand new web server on your favourite browser.

// in terminal
demo$ heroku open

Last updated