工头启动多个流程?

时间:2015-06-27 23:53:44

标签: ruby foreman procfile

我在Procfile中定义了三个流程。有时候,我只想跑两个。是否有命令?

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

2 个答案:

答案 0 :(得分:14)

您可以使用-c or --concurrency option,只需指定要启动的流程:

$ foreman start -c process_1=1,process_2=1

答案 1 :(得分:4)

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

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