Skip to content

Instantly share code, notes, and snippets.

@tarot
Last active August 29, 2015 14:22
Show Gist options
  • Save tarot/b50bad9e48545a3d478e to your computer and use it in GitHub Desktop.
Save tarot/b50bad9e48545a3d478e to your computer and use it in GitHub Desktop.
web dynoをスケールするコマンド。事前にheroku config:setでHEROKU_API_KEYとHEROKU_APP_NAMEを設定する。
curl -n -X PATCH https://api.heroku.com/apps/${HEROKU_APP_NAME}/formation/web \
-H "Accept: application/vnd.heroku+json; version=3" \
-H "Authorization: Bearer ${HEROKU_API_KEY}" \
-H "Content-Type: application/json" \
-d '{"quantity":1}'
curl -n -X PATCH https://api.heroku.com/apps/${HEROKU_APP_NAME}/formation/web -H "Accept: application/vnd.heroku+json; version=3" -H "Authorization: Bearer ${HEROKU_API_KEY}" -H "Content-Type: application/json" -d '{"quantity":1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment