Search code examples
rubyforemanprocfile

Foreman start multiple processes?


I have three processes defined in my Procfile. Sometimes, I only want to run two of them. Is there a command for that?

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

Solution

  • You could use the -c or --concurrency option and just specify the processes you want to start:

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