Skip to content
Dan Hey edited this page Jun 7, 2017 · 7 revisions

Setup remotes

You will need access from a heroku admin/owner to each app.

  • QA ENVIRONMENT: heroku git:remote -a qa-back-yards-coffee -r qa

  • DEMO ENVIRONMENT: heroku git:remote -a demo-back-yards-coffee -r demo

  • PRODUCTION ENVIRONMENT: heroku git:remote -a back-yards-coffee -r prod

Deployment

Assuming all tests and status checks are passing, deployments will occur automatically via Codeship after a pull request had been merged into one of the corresponding branches. Deployments can also be made from the command line using the following commands:

  • QA ENVIRONMENT: git push qa qa:master

  • DEMO ENVIRONMENT: git push demo demo:master

  • PRODUCTION ENVIRONMENT: git push prod master

It may be useful to manually deploy a feature branch to qa before merging to further test your changes.

  • git push qa <branch-name>:master

Useful commands

  • heroku logs --remote <environment>

  • heroku run rails c --remote <environment>

Clone this wiki locally