简体   繁体   English

由于缺少`cleanModifiedSubpaths`,Node.js服务器在本地工作,但无法在Heroku上工作

[英]Node.js server works locally but not on Heroku because of missing `cleanModifiedSubpaths`

I have a simple node.js server started up by 我有一个简单的node.js服务器启动

http.createServer(app).listen(process.env.PORT || 3000)

It works completely fine locally, but when I deploy to Heroku, the application crashes and in the error log, I receive the error message: 它在本地完全可以正常工作,但是当我部署到Heroku时,应用程序崩溃并且在错误日志中,我收到错误消息:

Error: Cannot find module './services/document/cleanModifiedSubpaths'

I have tried searching for this error, but I don't see anyone else with this problem. 我尝试搜索此错误,但是没有其他人遇到此问题。

What can have caused this? 是什么原因造成的?

Hi You can find your solution below link, it looks casesensitive problem because heroku is based on linux hence application cant access the file. 嗨,您可以在链接下找到您的解决方案,它看起来区分大小写,因为heroku基于linux,因此应用程序无法访问该文件。

@surfearth answer @surfearth答案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM