我在Procfile
中定义了三个流程。有时候,我只想跑两个。是否有命令?
$ foreman start process_1 process_2
ERROR: "foreman start" was called with arguments ["process_1", "process_2"]
Usage: "foreman start [PROCESS]"
答案 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"