2012-11-08 68 views

回答

0

heroku logs --tail -a app_name 

,尋找線,如

2012-11-08T12:32:07+00:00 app[web.1]: Started GET "/" for x.x.x.x at 2012-11-08 12:32:07 +0000 
2

截至2014年,Heroku的路由器日誌行看起來是這樣:

2014-07-23T18:41:15.364378+00:00 heroku[router]: at=info method=GET path="/help" host=thesquarefoot.com request_id=d0b9623e-e6b4-4723-8bac-b884da01d7e3 fwd="98.14.243.118" dyno=web.3 connect=1ms service=16ms status=301 bytes=360 

fwd值是請求的IP地址。

要查看您的日誌,請運行heroku logs --tail --app yourappname

相關問題