这两天尝试做一下SSR,用了Nuxt.js,打包后在服务器上终端npm start运行,问题是会话关闭时候这个进程就结束了 试问如何才能forever一样,保持在后台运行?
回复 (1)
L
找到了.. 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.
参与回复
登录后即可参与回复。登录