7

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]"
ma11hew28
  • 121,420
  • 116
  • 450
  • 651
  • maybe you should do something like: `foreman start p1` and then `foreman start p2` –  Jun 27 '15 at 23:55

2 Answers2

16

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
matt
  • 78,533
  • 8
  • 163
  • 197
8

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

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

user2628688
  • 5,544
  • 1
  • 14
  • 3