Foreman start multiple processes?
Asked Answered
I

2

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]"
Imprison answered 27/6, 2015 at 23:53 Comment(1)
maybe you should do something like: foreman start p1 and then foreman start p2Vital
R
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
Respecting answered 28/6, 2015 at 1:9 Comment(0)
P
9

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

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

Parfitt answered 22/6, 2018 at 1:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.