目前,我在使用Redis作为NodeJS应用程序的会话存储时遇到了一些问题。在某个时候,当我的应用程序等待mongoDB承诺响应查询时,Redis会话突然使整个应用程序崩溃。
堆栈跟踪:
_http_server.js:192
throw new RangeError(`Invalid status code: ${statusCode}`);
^
RangeError: Invalid status code: 0
at ServerResponse.writeHead (_http_server.js:192:11)
at ServerResponse.w
我正在尝试为更多像js,hbs这样的扩展添加nodemon的watcher,
当我使用这些参数nodemon -e js,hbs运行nodemon时,应该注意.js,.hbs文件上的更改。
有一个输出显示nodemon获得了这些参数,但什么也没有发生。
C:\Users\97252\WebstormProjects\web-server\src>nodemon app.js -e js,hbs
[nodemon] 2.0.4
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[node