Last active
August 29, 2015 14:05
-
-
Save searls/9a47eee96af71db2c7b9 to your computer and use it in GitHub Desktop.
Blindly upgrade from Heroku's Bamboo stack to Cedar stack
This file contains hidden or 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 -e | |
PREV_PWD=`pwd` | |
mkdir -p "$HOME/tmp" | |
cd "$HOME/tmp" | |
echo "-----> Cloning into $1" | |
heroku git:clone -a $1 | |
cd $1 | |
echo "-----> Setting stack to cedar" | |
heroku stack:set cedar | |
echo "-----> Make a commit" | |
git commit -m "Upgrade to Heroku Cedar stack" --allow-empty | |
echo "-----> Deploying app" | |
git push | |
cd "$PREV_PWD" |
Rather than appending an empty space, what about
echo "-----> Making an arbitrary commit to push"
git commit -m "Upgrade to Heroku Cedar stack" --allow-empty
oh nice, I always forget about that flag.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a whole bunch of totally vanilla, default little toy apps on the bamboo stack and didn't feel like carefully walking through the lengthy Cedar Stack Migration Guide for each of them. So instead I just made this script executable and ran: