- Make changes on develop. Commit and push to origin.
- Swtich to master, pull and merge from orgin.
- IMPORTANT: You'll need to commit the build files since the build process times out on Heroku and so you need to do it locally.
- From your Master Branch, change your .Procfile to
web: ./node_modules/.bin/grunt build optimize && node server/server
$ foreman startwhich will simulate building on Heroku.
- You should now have a bunch of new files in your build folder. Commit those. DONT COMMIT THE PROCFILE!
- Now, back to normal...
- Wait! Make sure to test the app as building and minification often breaks stuff!
- Commit the build files:
chore(build): Build and minify app;
- In Master, bump the version in
package.jsonand make a commit
chore(release): Version bump to v.#.#.#!
- Deploy to Heroku by pushing to heroku remote branch:
$ git push BRANCH master:master. Where
BRANCHis the name of your remote production OR development branch on heroku (see below)
- Create new tag from Master following convention of
- Push Master AND Tags to github.
$ git remote add rs002_develop firstname.lastname@example.org:rs002dev.git
visit at: http://rs002dev.herokuapp.com/
If you don't have the heroku site added, add it now:
$ git remote add rs002_production email@example.com:rsbeta.git
visit at: http://rootstrikers.org