mirror of
https://github.com/imsyy/DailyHotApi.git
synced 2026-01-12 05:04:56 +08:00
feat: 修改pm3配置
This commit is contained in:
@@ -30,6 +30,6 @@ npm run build || handle_error "构建失败"
|
|||||||
|
|
||||||
# 使用 pm2 重启或启动项目
|
# 使用 pm2 重启或启动项目
|
||||||
log "正在启动/重启服务..."
|
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 "部署完成!"
|
log "部署完成!"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module.exports = {
|
|||||||
watch: false,
|
watch: false,
|
||||||
max_memory_restart: '1G',
|
max_memory_restart: '1G',
|
||||||
env: {
|
env: {
|
||||||
NODE_ENV: 'production',
|
NODE_ENV: 'development',
|
||||||
PORT: 6688
|
PORT: 6688
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
"dev": "cross-env NODE_ENV=development tsx watch --no-cache src/index.ts",
|
"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",
|
"dev:cache": "cross-env NODE_ENV=development tsx watch src/index.ts",
|
||||||
"build": "tsc --project tsconfig.json",
|
"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",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user