主要变更: - 添加完整的项目结构和模块(admin、articles、comments、users、session、oauth2、email、moderation、analytics、jobs 等) - 实现系统初始化 API(/init/status 和 /init/run) - 重写部署流程:迁移到 package.json scripts,删除 Makefile - 优化部署脚本:deploy.sh、healthcheck.sh、backup.sh、restore.sh、verify-env.sh - 更新 README.md:简化文档,整合部署指南 - 优化 AGENTS.md:精简到约 150 行,包含完整的代码规范和命令速查 - 配置 Docker Compose 自动化部署(prisma migrate deploy + seed) - 生成 OAuth2 RSA 密钥对支持 - 添加环境变量验证和数据库备份恢复功能
21 lines
395 B
JavaScript
21 lines
395 B
JavaScript
module.exports = {
|
|
apps: [
|
|
{
|
|
name: 'binglogyblog-api',
|
|
cwd: './apps/api',
|
|
script: 'dist/main',
|
|
interpreter: 'bun', // Use Bun runtime
|
|
instances: 1,
|
|
autorestart: true,
|
|
watch: false,
|
|
max_memory_restart: '1G',
|
|
env: {
|
|
NODE_ENV: 'production',
|
|
},
|
|
env_production: {
|
|
NODE_ENV: 'production',
|
|
},
|
|
},
|
|
],
|
|
};
|