feat: 修改pm3配置

This commit is contained in:
helti
2024-12-14 18:52:59 +08:00
parent 38f3f38403
commit b31d4f59a2
3 changed files with 3 additions and 3 deletions

View File

@@ -30,6 +30,6 @@ npm run build || handle_error "构建失败"
# 使用 pm2 重启或启动项目
log "正在启动/重启服务..."
pm2 restart daily-news || pm2 start ecosystem.config.js || handle_error "PM2 启动失败"
pm2 restart daily-news || pm2 start ecosystem.config.cjs || handle_error "PM2 启动失败"
log "部署完成!"

View File

@@ -8,7 +8,7 @@ module.exports = {
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'production',
NODE_ENV: 'development',
PORT: 6688
}
}]

View File

@@ -32,7 +32,7 @@
"dev": "cross-env NODE_ENV=development tsx watch --no-cache src/index.ts",
"dev:cache": "cross-env NODE_ENV=development tsx watch src/index.ts",
"build": "tsc --project tsconfig.json",
"start": "cross-env NODE_ENV=development tsx dist/index.js"
"start": "cross-env NODE_ENV=development node dist/index.js"
},
"type": "module",
"dependencies": {