Using multiple Heroku accounts

Using multiple Heroku accounts

acidjunk
September 25, 2014
1 min read

It’s quite easy to use multiple Heroku accounts. install the Heroku plugins from: git://github.com/ddollar/heroku-accounts.git

Then configure your accounts:

heroku accounts:add [account_name] --auto

Go to your project folder and choose your Heroku account: heroku accounts:set [account_name]

Add your project to heroku:

heroku git:remote --app [app_name]

If your app doesn’t exist yet:

heroku accounts:set [account_name]
heroku apps:create [app_name]

To push, tricky but useful for staging and tests, another branch to Heroku:

git push heroku develop:master

will push current develop branch to heroku

Tags

Computerz git