OUR BLOG

Thoughts on development, design and the world we live in.



many heroku apps? try -remote

By Curtis Jennings Schofield in Uncategorized. Posted on March 26th

I love how I can use the ‘-remote’ flag with heroku gem to tell heroku to use the application
that is refereed to by my git remote name ‘production’

This way i don’t have to remember the name of the app all the time for every project and i can
easily work with heroku the way i work with git for pushing to heroku :D


$ git remote show production


* remote production
Fetch URL: [email protected]:XXXY.git
Push URL: [email protected]:XXXY.git
HEAD branch: master
Remote branch:
master new (next fetch will store in remotes/production)
Local ref configured for 'git push':
master pushes to master (fast-forwardable)

Here is an example of running a heroku command with this option

heroku pgbackups:capture --remote production

Post a Comment

Your email is never shared. Required fields are marked *

*
*