ma11hew28
ma11hew28

Reputation: 126397

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]"

Upvotes: 7

Views: 3728

Answers (2)

user2628688
user2628688

Reputation: 6594

This argument has been updated to -m / --formation

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

Upvotes: 9

matt
matt

Reputation: 79743

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

Upvotes: 16

Related Questions