4

I'm using Foreman to run my Rails 4 application, and I'm getting duplicate output. Web shows pretty much the same info as Log.

Can I run foreman and just hide the Web output?

enter image description here

My procfile:

web: bundle exec passenger start -p $PORT --max-pool-size 3
log: tail -f ./log/development.log
sergserg
  • 21,716
  • 41
  • 129
  • 182

1 Answers1

7

The entries in your Procfile are just commands to run and you can tinker with them the same way you would on the command line.

So you could redirect all of the stdout for your web process to /dev/null (looks like you might be on a *nix system):

web: bundle exec passenger start -p $PORT --max-pool-size 3 > /dev/null
Shadwell
  • 34,314
  • 14
  • 94
  • 99