What are thoughts around creating a staging environment for my app or should i create a second app on heroku for staging? Which one is better, or preferred?
Thanks.
If you want to set push. default for all git repositories (instead of just this one), add --global to the command. Now, you're in the staging branch and you're set up so that git pull and git push will work against your staging environment without any further arguments.
Heroku is also hard to use for non-web services that don't use HTTP. It's not really set up for them. It gets your data, which may or may not be a problem. It's like other cloud vendors, but may not be okay for you.
Second app - add the git remote of the new app to your repo so you can deploy to it from a single code base.
Read more at https://devcenter.heroku.com/articles/multiple-environments
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With