Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux部署的一点小bug #24

Open
kwanKC opened this issue Sep 19, 2022 · 1 comment
Open

linux部署的一点小bug #24

kwanKC opened this issue Sep 19, 2022 · 1 comment

Comments

@kwanKC
Copy link

kwanKC commented Sep 19, 2022

./app/middleware目录下的RewriteUrl.js文件名跟app.js里对应语句所指的文件路径不对应。

// 为静态资源请求重写url
const rewriteUrl = require('./app/middleware/rewriteUrl');
app.use(rewriteUrl);

搞了半天,一直在报找不到模块的错,文件名大小写的问题

@kwanKC
Copy link
Author

kwanKC commented Sep 19, 2022

把文件名改了之后就能成功运行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant