关于Nuxt.js服务器部署
 发布于 7 年前  作者 LynanBreeze  3634 次预览  最后一次回复是 7 年前  来自 问答 

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

1 回复
LynanBreeze

找到了… 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.