maxdobeck / gatekeeper

API that performs user authentication and authorization as well as process business logic.
0 stars 0 forks source link

Document Heroku Deploy process and Prod Setup #9

Open maxdobeck opened 6 years ago

maxdobeck commented 6 years ago

Basically just run this: https://devcenter.heroku.com/articles/getting-started-with-go#use-a-database and add --remote or --app to the end of a heroku Command Line command.

maxdobeck commented 6 years ago

Ended up creating two remotes:

$ git remote -v
heroku-prod     https://git.heroku.com/rugged-wind-cave-81042.git (fetch)
heroku-prod     https://git.heroku.com/rugged-wind-cave-81042.git (push)
heroku-test     https://git.heroku.com/shielded-stream-75107.git (fetch)
heroku-test     https://git.heroku.com/shielded-stream-75107.git (push)
origin  git@github.com:maxdobeck/gatekeeper.git (fetch)
origin  git@github.com:maxdobeck/gatekeeper.git (push)
maxdobeck commented 6 years ago

Docker has been great for this. Current variables needed: -e PGURL=postgres://sfdev:sfdev@localhost:5432/scheduler_fairy_dev -e GO_ENV=dev -p 3050:3050 -e PORT=3050

Edit: Not sure what this comment is about. Ignoring for now.