Save before creating restore point: Session start
Auto-saved at 2025-07-29 14:27:28 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
44
ecosystem.config.js
Normal file
44
ecosystem.config.js
Normal file
@@ -0,0 +1,44 @@
|
||||
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
|
||||
}
|
||||
]
|
||||
};
|
||||
Reference in New Issue
Block a user