'How can i create a clone of an existing app on heroku from another heroku app as separate app?
I have a main app on heroku and another app A on git in location github:a.
I want to create, when it is necessary, copies of A as A1,A2,A3...AN as separate apps on heroku from my main app automatically with different parameters.
How can i do that?
Edit: This process should be done by my main app automatically.
Solution 1:[1]
Updating this answer due to Heroku command DEPRECATION:
heroku fork
has been deprecated as a core command as of 12/01/2017.
You will need to install the heroku-fork
plugin to continue using this command.
heroku plugins:install heroku-fork
Here is a link to the Github plugin repo.
Solution 2:[2]
Use heroku fork
to copy an existing application, including add-ons, config vars, and Heroku Postgres data.
See this KB page: Forking Applications.
Solution 3:[3]
Heroku toolbelt now provides a fork method to clone an existing application, see my answer here :
Solution 4:[4]
There is a new feature on Heroku called Review Apps. One can create copies of the app manually or set up automatic copies from new PRs on Github. Read more at: https://devcenter.heroku.com/articles/github-integration-review-apps
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | Simone Carletti |
Solution 3 | Community |
Solution 4 | Lukasz Czerwinski |