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时。