我在我的Procfile
. 有时,我只想运行其中两个。有这个命令吗?
$ foreman start process_1 process_2
ERROR: "foreman start" was called with arguments ["process_1", "process_2"]
Usage: "foreman start [PROCESS]"
您可以使用-c
or--concurrency
选项并指定要启动的进程:
$ foreman start -c process_1=1,process_2=1
此参数已更新为-m
/--formation
IE:foreman start -m "web=1,worker=1"