Multiple Instances of an app on Heroku

I need to deploy several instances of the same app on heroku. It appears that I need to have a branch and local repo for each instance to deploy each instance to heroku via the cli. This just doesnt seem right.

Does anyone have any experience in this area?

  • How to suppress the --show-name (filename) option when git blame?
  • How to name and retrieve a stash by name in git?
  • Is it possible to preserve git version history for moved files when splitting a repository?
  • “'git' is not recognized as an internal” blah blah even though the command works the first time
  • TFS 2017 Update 2 - Cannot Edit/Delete Git Tag
  • How can I set maximum field lenghs for git log prettyprint?
  • What happens when GIT runs out of hash values for your Revisions?
  • How to run stash in Github Desktop?
  • Locking strategy of git to achieve concurrency?
  • Remove working files from git repository, to save space
  • How to send pull request on Git
  • Git push vs. git push heroku master
  • One Solution collect form web for “Multiple Instances of an app on Heroku”

    You will need to have a git remote set up for each heroku app, but you can push to any remote from one local repo.

    You can use the heroku git:remote command to set up multiple git remotes for your multiple heroku apps. Run that command with --help to see all the options, but this would create a git remote called staging for a heroku app named chunky-bacon-1234:

    $ heroku git:remote -r staging -a chunky-bacon-1234

    Then, if you wanted to deploy your local branch named my-experiment to that heroku app, you can push that branch to the remote’s master branch:

    $ git push staging my-experiment:master
    Git Baby is a git and github fan, let's start git clone.