English 中文(简体)
当用pm2从母子开始修女时,我发现的错误是“没有在家/家/家/家/母/养家/养家中找到档案”。
原标题:When start the nuxt from its parent folder using pm2, I get the error "No build files found in /home/.nuxt/dist/server"
  • 时间:2023-12-14 10:28:52
  •  标签:
  • nuxt.js
  • pm2

Inside my /home folder I have 2 nuxt apps, callh & callr.

ff373b7ddfdb:/home# ls
callh                ecosystem.config.js                  startup.sh           callr

我可以先把这两条打成自己的双管,一开始,但我想用第2页开始,如<条码>生态系统”。 页: 1

But pm2 report error FATAL 没有建立在家庭/家庭/家庭/卫生/维护者上的档案。 如何让Nuxt服务器知道这些代码载于/home/ callsh/nuxt/dist/server NOT /home/.nuxt/dist/server?

2023-12-14 17:25:04:   Use either nuxt build or builder.build() or start nuxt in development mode.
2023-12-14 17:25:04:   at VueRenderer._ready (callh/node_modules/@nuxt/vue-renderer/dist/vue-renderer.js:550:13)
2023-12-14 17:25:04:   at async Server.ready (callh/node_modules/@nuxt/server/dist/server.js:451:5)
2023-12-14 17:25:04:   at async Nuxt._init (callh/node_modules/@nuxt/core/dist/core.js:344:7)
2023-12-14 17:25:04:
2023-12-14 17:25:04:
2023-12-14 17:25:04:  FATAL  No build files found in /home/.nuxt/dist/server.
2023-12-14 17:25:04: Use either `nuxt build` or `builder.build()` or start nuxt in development mode.

————————

我找到了工作,把工作分成两倍,以管理平时2分(改变生态系统。

#before it is just pm2 start ecosystem.config.js to start them all together.

cd /home/callh
pm2 start ecosystem.config.js --env production
cd /home/callr
pm2 start ecosystem.config.js --env production

ecosystem.config.js 更改

module.exports = {
  apps: [
    {
      name:  call history  ,
      script:  ./node_modules/nuxt/bin/nuxt.js ,
      args:  start ,
      watch: false,
      ...

由于下午2时,甚至我两次跑,只有一个下午2时。

问题回答




相关问题
Vue array dependent select not display data

I have dependent selection like this. Selection image when i console log, they have data but not render data in selection data This is what i ve tried. for Product selection has default selected value ...

agora voiceCall microphone permission issue

I m developing a voice chat service using WebRTC. This service utilizes react-native-webview and is implemented using the Agora module in Nuxt.js. However, while there are no problems on Android, when ...

Create Vue component documentation library for private use

I want to create a docs site for my Vue components, my question is: do I need to start a completely new project just for component documentation site or I can simply create a new branch in my exsiting ...

Strapi - /admin folder not found

So i got an issue while deploying it on the server. Localhost works fine, however when I open the strapi admin panel on the server, it asks for admin folder which I could not find. Here is the working ...