Skip to content

Instantly share code, notes, and snippets.

@chollier
Created February 1, 2017 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chollier/05ac3c7b5cbc083ef74e08f4afc124f8 to your computer and use it in GitHub Desktop.
Save chollier/05ac3c7b5cbc083ef74e08f4afc124f8 to your computer and use it in GitHub Desktop.
# Save dyno formation state
heroku ps:scale > mydynoformation
# Scale dynos to 0
heroku ps:scale $(heroku ps:scale | sed -E 's/=([0-9]+):/=0:/g')
# Scale dynos back to their original state
heroku ps:scale `cat mydynoformation`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment