Can someone explain “heroku ps:scale web=1”

后端 未结 4 1929
北恋
北恋 2020-12-30 01:21

I\'m looking for a straightforward explanation of what all happens when I enter the following command:

heroku ps:scale web=1 

What is Hero

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-30 02:08

    Though the other answers are correct, I think some might find it useful to understand the actual breakdown of the command.

    • ps is a command which prefixes many commands affecting dynos (~virtual machine instances); I'm assuming it's related to the linux ps command, which stands for "process status."
    • ps:scale is used to increase the number of dynos running a process.
    • ps:scale web=1 specifies to run the process on 1 web dyno.

    An index of Heroku CLI commands can be found here: https://devcenter.heroku.com/articles/heroku-cli-commands

提交回复
热议问题