Created
August 1, 2013 10:54
-
-
Save pauldruziak/6130354 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# replace this variables | |
$prefix="prefix" | |
$mainapp="mainapp" | |
branch=$(git rev-parse --abbrev-ref HEAD) | |
app="$prefix-$branch" | |
heroku fork $app -a $mainapp | |
heroku git:remote -a $app -r $app | |
git push --force $app $branch:master | |
# heroku sharing:add [email protected] -a $app | |
heroku apps:info -a $app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# replace this variables | |
$prefix="prefix" | |
$mainapp="mainapp" | |
branch=$(git rev-parse --abbrev-ref HEAD) | |
app="$prefix-$branch" | |
heroku apps:destroy $app --confirm | |
git remote remove $app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment