ser*_*erg 3 logging ruby-on-rails foreman procfile
我正在使用Foreman运行我的Rails 4应用程序,并且得到重复的输出。Web显示与Log几乎相同的信息。
我可以运行领班并只隐藏Web输出吗?

我的procfile:
web: bundle exec passenger start -p $PORT --max-pool-size 3
log: tail -f ./log/development.log
Run Code Online (Sandbox Code Playgroud)
Procfile中的条目只是要运行的命令,您可以像在命令行上一样修改它们。
因此,您可以将Web流程的所有标准输出重定向到/dev/null(看起来可能在* nix系统上):
web: bundle exec passenger start -p $PORT --max-pool-size 3 > /dev/null
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
465 次 |
| 最近记录: |