我在部署nodejs应用时遇到了问题。我在我的应用程序中使用了Express、MySQL和基本的Express结构。当我在openshift上打开应用程序URL时,我得到了503错误消息。在nodejs.log上,我可以看到:
Warning: connect.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
Pipe 8080 is already in use
该应用程序使用
我试图构建一个结合了nginx和pm2的docker镜像,但是当我尝试像this一样执行pm2时,我得到了以下错误: /bin/sh: [pm2-runtime,: not found 奇怪的是,如果我覆盖CMD并像这样使用它: sudo docker run -it -p 80:80 frontend-test pm2-runtime 它会识别出安装了pm2(-runtime)。有谁知道黑魔法是怎么发生的吗?在以前的版本中,我生成nuxt页面,并通过Nginx静态地提供它们,但现在我想将其转换为使用nuxt的SSR模式。我的目标是运行这个应用程序,然后通过Nginx反向代理(这似乎是可行的