chore: add deployment configuration for PM2 and production environment
- Add deploy.sh script for automated deployment via rsync - Add ecosystem.config.js for PM2 process management (2 instances) - Add .env.production.example as production env template - Update config.module.ts to support .env.production file - Add 'pnpm run deploy' script to package.json
This commit is contained in:
12
.env.production.example
Normal file
12
.env.production.example
Normal file
@@ -0,0 +1,12 @@
|
||||
# 生产环境配置
|
||||
# 复制此文件为 .env.production 并修改配置
|
||||
|
||||
NODE_ENV=production
|
||||
PORT=3000
|
||||
|
||||
# 数据库配置
|
||||
DB_HOST=localhost
|
||||
DB_PORT=3306
|
||||
DB_USERNAME=your_db_username
|
||||
DB_PASSWORD=your_db_password
|
||||
DB_DATABASE=meme_mind
|
||||
Reference in New Issue
Block a user