npm install
rails s -p 3001
npm start
- Build files
npm run build
- Make an "add build files" commit
Set up heroku branches:
heroku git:remote -a npoint-io-staging
git remote rename heroku staging
heroku git:remote -a npoint-io
git remote rename heroku production
Push:
git push staging master
git push production master
Maybe run migrations:
heroku run rake db:migrate --app npoint-io-staging
heroku run rake db:migrate --app npoint-io