4
我在我的Procfile
中定義了三個進程。有時候,我只想運行其中的兩個。有沒有一個命令?工頭開始多個進程?
$ foreman start process_1 process_2
ERROR: "foreman start" was called with arguments ["process_1", "process_2"]
Usage: "foreman start [PROCESS]"
我在我的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
option,只是指定要啓動進程:
$ foreman start -c process_1=1,process_2=1
也許你應該這樣做:'工頭開始p1'然後'工頭開始p2' – ioanD