关于Nuxt.js服务器部署
发布于 6 年前 作者 LynanBreeze 3064 次浏览 来自 问答

这两天尝试做一下SSR,用了Nuxt.js,打包后在服务器上终端npm start运行,问题是会话关闭时候这个进程就结束了 试问如何才能forever一样,保持在后台运行?

1 回复

找到了… This should work:

forever start -c “npm start” /path/to/app/dir/ So running from your application’s directory you could just use ‘./’ as your path.

回到顶部