Skip to content

Instantly share code, notes, and snippets.

@romulomachado
Last active August 29, 2015 14:19
Show Gist options
  • Save romulomachado/c151f3a503fe6945eb6b to your computer and use it in GitHub Desktop.
Save romulomachado/c151f3a503fe6945eb6b to your computer and use it in GitHub Desktop.
How to update all your Heroku apps to cedar-14
# The Cedar-14 stack is the latest version of the Heroku Cedar stack.
# It features updated system dependencies and runs on a recent version of Ubuntu Linux.
# Use this scipt to update all your apps.
# Fill this array with your apps' names.
apps=( app-name-1 app-name-2 app-name-3 app-name-4 ... app-name-n )
for app in "${apps[@]}"
do
heroku git:clone -a ${app}; cd ${app}; heroku stack:set cedar-14; git commit --allow-empty -m "Upgrade to Cedar-14"; git push heroku master; cd ..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment