尝试浏览要从db中提取的内容时尤其会发生错误。
例如 如果我转到登录页面,那么好又简单,没有连接数据库,它将打开。
但是当尝试转到/books
时,它将抛出一个错误,并且没有问题/register
或/login
,但是在登录或注册后会发生相同的错误。
登录landing page
或/login
时记录
at=info method=GET path="/stylesheets/landing.css" host=zen-like-name.herokuapp.com request_id='some hex numbers' fwd="ip" dyno=web.1 connect=0ms service=4ms status=304 bytes=237 protocol=https
at=info method=GET path="/stylesheets/main.css" host=zen-like-name.herokuapp.com request_id='some hex numbers' fwd="ip" dyno=web.1 connect=0ms service=4ms status=304 bytes=237 protocol=https
尝试登录或浏览/ books页面时记录
at=error code=H12 desc="Request timeout" method=POST path="/login" host=zen-like-name.herokuapp.com request_id="some hex numbers" fwd="IP" dyno=web.1 connect=0ms service=30000ms status=503 bytes=0 protocol=https
at=error code=H12 desc="Request timeout" method=GET path="/books" host=zen-like-name.herokuapp.com request_id="some hex numbers" fwd="IP" dyno=web.1 connect=0ms service=30000ms status=503 bytes=0 protocol=https
'heroku run npm install mongoose'
上安装猫鼬