Skip to content

node进程挂死 #254

Closed Answered by ddiu8081
seramat asked this question in Q&A
Mar 14, 2023 · 3 comments · 3 replies
Discussion options

You must be logged in to vote

不建议在正式使用的场合使用 dev 命令,这应该仅在开发阶段使用,不适合用来长时间运行。

要稳定部署,可以使用 build 命令打包 (#183):

npm run build
node ./dist/server/entry.mjs

要实现自动重启,可使用 pm2 等工具运行 ./dist/server/entry.mjs

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@ufoozhenghao
Comment options

@ddiu8081
Comment options

@seramat
Comment options

Answer selected by seramat
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants