增加 pm2 平滑重启

This commit is contained in:
whyour
2023-05-06 00:09:03 +08:00
parent 3d11210aeb
commit 5baa8e4391
8 changed files with 54 additions and 45 deletions
+1
View File
@@ -18,6 +18,7 @@ async function startServer() {
const server = app
.listen(config.port, () => {
Logger.debug(`✌️ 后端服务启动成功!`);
process.send?.('ready');
})
.on('error', (err) => {
Logger.error(err);