Skip to content

Instantly share code, notes, and snippets.

@abtris
Created May 30, 2018 09:02
Show Gist options
  • Select an option

  • Save abtris/449681b44d005b7d4737e1c13a77cef1 to your computer and use it in GitHub Desktop.

Select an option

Save abtris/449681b44d005b7d4737e1c13a77cef1 to your computer and use it in GitHub Desktop.
Update stack on Heroku
#!/bin/bash
# stack.sh apps.txt
# apps.txt generate by heroku apps -o ORG_NAME
while IFS='' read -r line || [[ -n "$line" ]]; do
# Check stack
echo -n "${line} - "; heroku apps:info -a $line | grep Stack: | tr -s ' ' | cut -d ' ' -f 2
# Update stack
# heroku stack:set heroku-16 -a $line
done < "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment