Created
February 1, 2017 19:43
-
-
Save chollier/05ac3c7b5cbc083ef74e08f4afc124f8 to your computer and use it in GitHub Desktop.
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
# 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