feat: Add PM2 process manager configuration

- Add ecosystem.config.js with auto-restart settings
- Add PM2 management scripts to package.json
- Create PM2.md documentation
- Update .gitignore to exclude logs
- Create logs directory for PM2 output

Scripts available:
- npm run pm2:start - Start with PM2
- npm run pm2:stop - Stop process
- npm run pm2:restart - Restart process
- npm run pm2:logs - View logs
- npm run pm2:status - Check status
- npm run pm2:monit - Real-time monitoring
This commit is contained in:
2026-01-19 13:43:40 +08:00
parent b9b255ec79
commit d259088b71
4 changed files with 133 additions and 1 deletions

5
.gitignore vendored
View File

@@ -35,3 +35,8 @@ build/
# Temporary files
*.tmp
*.temp
# PM2
logs/
.pm2/
*.log