ENOENT error using nodejs on heroku

こ雲淡風輕ζ 提交于 2019-12-12 04:57:57

问题


I'm getting an ENOENT error on my heroku app, preventing it from starting up:

Error: ENOENT, open '/app/log/production.log'

This file / dir (app/log) does exist however... So I'm not sure what's going on?


回答1:


I ended up disabling 'quiet' mode to stop writing logs to disk:

app.disable('quiet');

This seems to of resolved it



来源:https://stackoverflow.com/questions/10196057/enoent-error-using-nodejs-on-heroku

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!