Modify deploy.sh to use local npm package binaries for Vite and Drizzle Kit, and update ecosystem.config.js to use ES Module export syntax. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 42d8028a-fa71-4ec2-938c-e43eedf7df01 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/42d8028a-fa71-4ec2-938c-e43eedf7df01/AwjfjCW
22 lines
597 B
JavaScript
22 lines
597 B
JavaScript
// PM2 Ecosystem config per VigilanzaTurni
|
|
// Le variabili .env vengono caricate dallo script deploy.sh e passate tramite 'export'
|
|
|
|
export default {
|
|
apps: [{
|
|
name: 'vigilanza-turni',
|
|
script: 'npm',
|
|
args: 'start',
|
|
cwd: '/var/www/vigilanza-turni',
|
|
instances: 1,
|
|
autorestart: true,
|
|
watch: false,
|
|
max_memory_restart: '1G',
|
|
error_file: '/root/.pm2/logs/vigilanza-turni-error.log',
|
|
out_file: '/root/.pm2/logs/vigilanza-turni-out.log',
|
|
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
|
|
kill_timeout: 3000,
|
|
wait_ready: false,
|
|
listen_timeout: 3000
|
|
}]
|
|
};
|