Heroku_Guide - MaxGolden/Personal_Blogs GitHub Wiki

Heroku

Heroku installation for MAC

[1] install brew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

[2] install heroku by using brew

brew tap heroku/brew && brew install heroku

For committing a new heroku app

[1] edit package.json add this into it.

# The node and npm version you want heroku to run
"engines": {
    "node": "8.1.1",
    "npm": "5.0.3"
  },

[2] edit package.json add replace this.

  "scripts": {
    "start": "node index.js"
  },

[3] add .gitignore in main folder like this

.gitignore =>

node_modules

[4] Terminal open in current folder and type git init => git add . => git commit -m "##"

[5] Terminal: heroku login - make sure you login the heroku with your account.

[6] git remote add heroku https://git.heroku.com/murmuring-retreat-26999.git

[7] git push heroku master

[8] heroku open