- 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
43 lines
385 B
Plaintext
43 lines
385 B
Plaintext
# Dependencies
|
|
node_modules/
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
|
|
# Editor directories and files
|
|
.vscode/*
|
|
!.vscode/extensions.json
|
|
.idea
|
|
.DS_Store
|
|
*.suo
|
|
*.ntvs*
|
|
*.njsproj
|
|
*.sln
|
|
*.sw?
|
|
|
|
# OS files
|
|
Thumbs.db
|
|
.DS_Store
|
|
|
|
# Logs
|
|
logs
|
|
*.log
|
|
|
|
# Environment variables
|
|
.env
|
|
.env.local
|
|
.env.*.local
|
|
|
|
# Build files
|
|
dist/
|
|
build/
|
|
|
|
# Temporary files
|
|
*.tmp
|
|
*.temp
|
|
|
|
# PM2
|
|
logs/
|
|
.pm2/
|
|
*.log
|