0

我似乎有一个非常奇怪的问题......我正在尝试开发一个 Rails 应用程序以使用 Unicorn 部署在 Heroku 上 - 因此我在本地开发环境中使用 Foreman 来尝试尽可能接近地复制生产。

如您所料,我的 web/worker 处理输出到 path/to/app/log 中的 development.log 文件。如果我导航到该文件,它包含您期望的所有内容

但是,如果我使用命令

tail -f log/development.log

(从应用程序路径),我从HEROKU获得日志输出!这怎么可能?(例如):

app[web.1]: [Worker(host:xxxx-xxx-xxx pid:5)] Starting job worker
heroku[web.1]: Idling
heroku[web.1]: Stopping process with SIGTERM
app[web.1]: I, [2012-02-19xxx-xxx-xxx #1]  INFO -- : reaped #<Process::Status: pid 7 exit 0> worker=0
app[web.1]: I, [2012-02-19xxx-xxx-xxx #1]  INFO -- : reaped #<Process::Status: pid 11 exit 0> worker=1
app[web.1]: I, [2012-02-19xxx-xxx-xxx #1]  INFO -- : reaped #<Process::Status: pid 14 exit 0> worker=2
app[web.1]: I, [2012-02-19xxx-xxx-xxx #1]  INFO -- : master complete
heroku[web.1]: Process exited with status 0
heroku[web.1]: State changed from up to down
heroku[slugc]: Slug compilation started
heroku[api]: Release v22 created by brandon@example.com
heroku[api]: Deploy xxxx by randon@example.com
heroku[slugc]: Slug compilation finished

这真的很烦人,因为我无法正确查看我的开发日志......不胜感激!

4

1 回答 1

1

这不是福尔曼在做的事情。

如果只查看 log/development.log 会发生什么?是一样的吗?

您是否有任何可能导致此问题的古怪别名设置?

于 2012-02-21T11:33:53.257 回答