youtube dynos heroku code example
Example: heroku scale dynos
# One web dyno running
heroku ps:scale web=1
# One web dyno + one worker dyno
# A worker dyno is a dyno that does process types that isn't a web in your procfile
heroku ps:scale web=1 worker=1
# Two web dyno + one worker dyno
heroku ps:scale web=2 worker=1
# If you want different dyno types (standard-2x etc) do this:
heorku ps:scale web=2:standard-2x
# If you want no dynos running, just scale it to zero:
heroku ps:scale web=0 worker=0