Skip to content

Instantly share code, notes, and snippets.

@pauldruziak
Created August 1, 2013 10:54
Show Gist options
  • Save pauldruziak/6130354 to your computer and use it in GitHub Desktop.
Save pauldruziak/6130354 to your computer and use it in GitHub Desktop.
#!/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 pavel.druzyak@gmail.com -a $app
heroku apps:info -a $app
#!/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