cd repo
# add the first remote
heroku git:remote -a app-one-name
#set git remote heroku to https://git.heroku.com/app-one-name.git
#next, rename the remote to something else
git remote rename heroku heroku-app-one
#now we can add second remote for our other app
heroku git:remote -a app-two-name
#set git remote heroku to https://git.heroku.com/app-two-name.git
#doesn't hurt to rename this one as well
git remote rename heroku heroku-app-two
# deploy each app via it's unique remote
git subtree push --prefix app-one-path heroku-app-one master
git subtree push --prefix app-two-path heroku-app-two master
Last active
April 26, 2020 07:50
-
-
Save forksofpower/956ecb974164b2e5f648407360aceba4 to your computer and use it in GitHub Desktop.
Deploy multiple apps to Heroku from a single monorepo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment