Auto-saved at 2025-07-29 14:27:28 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
44 lines
1.3 KiB
JavaScript
44 lines
1.3 KiB
JavaScript
module.exports = {
|
|
apps: [
|
|
{
|
|
name: 'timeshift-auto-commit',
|
|
script: './watch-and-commit.js',
|
|
cwd: '/home/klas/timeshift',
|
|
watch: false, // We don't want PM2 to restart on file changes since we're watching files ourselves
|
|
autorestart: true,
|
|
max_restarts: 10,
|
|
min_uptime: '10s',
|
|
restart_delay: 5000,
|
|
env: {
|
|
NODE_ENV: 'development',
|
|
PWD: '/home/klas/timeshift'
|
|
},
|
|
log_file: '/home/klas/timeshift/logs/auto-commit.log',
|
|
out_file: '/home/klas/timeshift/logs/auto-commit.out.log',
|
|
error_file: '/home/klas/timeshift/logs/auto-commit.error.log',
|
|
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
|
|
merge_logs: true,
|
|
max_memory_restart: '200M'
|
|
},
|
|
{
|
|
name: 'timeshift-dev',
|
|
script: 'npm',
|
|
args: 'run dev',
|
|
cwd: '/home/klas/timeshift',
|
|
watch: false,
|
|
autorestart: true,
|
|
max_restarts: 5,
|
|
min_uptime: '30s',
|
|
restart_delay: 10000,
|
|
env: {
|
|
NODE_ENV: 'development',
|
|
PORT: 3000
|
|
},
|
|
log_file: '/home/klas/timeshift/logs/dev-server.log',
|
|
out_file: '/home/klas/timeshift/logs/dev-server.out.log',
|
|
error_file: '/home/klas/timeshift/logs/dev-server.error.log',
|
|
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
|
|
merge_logs: true
|
|
}
|
|
]
|
|
}; |