我在Heroku服務器上部署了Rails應用程序。當我使用「Heroku的日誌 - 尾」查看日誌,日誌不包括[web.1]日誌如GET PUT方法的信息Rails應用程序在Heroku日誌中缺少web.1登錄
2015-08-13T05:42:38.561579+00:00 heroku[router]: at=info method=GET path="/assets/application- 512839984b0409ab29d0db41a487a0a7a7e25c9bf0d7ff275ac4b7a502bb84c4.js" host=steam-staging.herokuapp.com request_id=88893db0-14e0-490f-b3d9-5c189fcf7768 fwd="128.250.0.10" dyno=web.1 connect=0ms service=17ms status=304 bytes=133
2015-08-13T05:43:13.820739+00:00 heroku[router]: at=info method=GET path="/ftp_servers/new" host=steam-staging.herokuapp.com request_id=6119d69e-ba37-404a-af4c-1fc022b1d08f fwd="128.250.0.10" dyno=web.1 connect=1ms service=144ms status=200 bytes=7683
2015-08-13T05:43:26.811633+00:00 heroku[router]: at=info method=GET path="https://stackoverflow.com/users/import" host=steam-staging.herokuapp.com request_id=8d0c021e-26ad-41c7-9fa1-e1fa33cdc930 fwd="128.250.0.10" dyno=web.1 connect=0ms service=27ms status=401 bytes=903
2015-08-13T05:43:27.149431+00:00 heroku[router]: at=info method=GET path="https://stackoverflow.com/users/import" host=steam-staging.herokuapp.com request_id=1d4eea1a-1bad-4ead-9eaa-4a4a827114e8 fwd="128.250.0.10" dyno=web.1 connect=1ms service=84ms status=200 bytes=2326
2015-08-13T05:43:33.835192+00:00 heroku[router]: at=info method=POST path="https://stackoverflow.com/users/import" host=steam-staging.herokuapp.com request_id=db08e749-116d-4ad0-ab1c-92d35b365472 fwd="128.250.0.10" dyno=web.1 connect=0ms service=83ms status=500 bytes=1754
然而,我的另一個應用程序可以顯示[網絡.1]日誌,看起來像
2015-08-13T03:51:41.013118+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=stephensample.herokuapp.com request_id=2f6f71a9-bca9-4b7c-8d35-cae752e94282 fwd="128.250.0.10" dyno=web.1 connect=0ms service=4ms status=200 bytes=228
2015-08-13T03:51:58.913419+00:00 app[web.1]: Started GET "https://stackoverflow.com/users/sign_in" for 128.250.0.10 at 2015-08-13 03:51:58 +0000
2015-08-13T03:51:59.047547+00:00 app[web.1]: Rendered devise/shared/_links.html.erb (1.7ms)
2015-08-13T03:51:59.047614+00:00 app[web.1]: Rendered devise/sessions/new.html.erb within layouts/application (64.1ms)
我的第一個應用程序有什麼問題?我的第一個應用程序出現錯誤,但無法看到日誌。
你可以爲你的應用程序發佈'config/environments/production.rb'嗎? –
這兩個應用程序都包含'production.rb',並且我比較了兩者,內容相同 – Stephen
請向我們展示此文件的內容。 –