6

我在我的Procfile. 有时,我只想运行其中两个。有这个命令吗?

$ foreman start process_1 process_2
ERROR: "foreman start" was called with arguments ["process_1", "process_2"]
Usage: "foreman start [PROCESS]"
4

2 回答 2

15

您可以使用-cor--concurrency选项并指定要启动的进程:

$ foreman start -c process_1=1,process_2=1
于 2015-06-28T01:09:48.683 回答
7

此参数已更新为-m/--formation

IE:foreman start -m "web=1,worker=1"

于 2018-06-22T01:07:47.940 回答