mercredi 6 mai 2015

Foreman conditional running processes

I have a foreman app with a Procfile like this

web: bundle exec rails s
custom_process: bundle exec rake custom:process
faking_custom_process: bundle exec rake custom:faking_process

And I want to run custom_process or faking custom_process depends on my needs:

foreman start # run web & custom_process
FAKING_PROCESS # run web & faking_custom_process

Yes, I know about ability of running like that foreman start -c faking_custom_process=0, but this is more difficult than I expect, right?

Aucun commentaire:

Enregistrer un commentaire