Summary

“To deploy an application” is a term used in the sense of making your application available to the web. Make it accessible for anyone who accesses the URL on the internet.

Popular Deployment Services

Heroku

The PaaS (Platform as Service) we are going to be using for learning purposes is Heroku. There is a lot of features that come as free to any user. That makes it easier for us to test and deploy multiple times.

Environment setup

  1. First step is to install the heroku-cli. Follow the link with the instructions!
  2. Then you’ll want to run: heroku login so the CLI can associate your profile with the computer

Remotes

Under your Node Project folder, you will need to add a new git remote for heroku:

# /Project_Folder/
heroku create [appName]

git remote -v # List project remotes
# There is going to be a heroku git.heroku.com/[appRandomName]

heroku create [appName] # Create an app just for testing purposes
heroku git:remote -a [appName] # Add remote to existing app

Rename a remote

git remote rename heroku heroku-development # git remote rename [from] [to]

Traditional Deploy

Container Deploy (No Git)