Local mac:
npm install --production
sudo echo node_modules > .gitignore
git init
git add --all
git commit -m 'Initial commit'
heroku create app-name
heroku addons:create heroku-postgresql:hobby-dev
Set Heroku Config Head over to Heroku Postgres Dashboard and click on the database you just created.
heroku config:set POSTGRES_DATABASE=<value>
heroku config:set POSTGRES_HOST=<value>
heroku config:set POSTGRES_PASSWORD=<value>
heroku config:set POSTGRES_USER=<value>
heroku config:set MY_URL=http://your-url.com
heroku config:set NODE_ENV=production
Configure Ghost on Heroku http://www.autodidacts.io/host-a-ghost-blog-on-heroku/#configureghostforheroku
Reformatting. Add all files into git repo with 'git add --all'.