diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 0000000..4796925 --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,32 @@ +module.exports = { + apps: [ + { + name: 'afficheurs-ferrovia-dev', + script: 'node_modules/react-scripts/scripts/start.js', + cwd: __dirname, + instances: 1, + autorestart: true, + watch: false, + max_memory_restart: '1G', + env: { + NODE_ENV: 'development', + PORT: 4001, + BROWSER: 'none', + }, + }, + { + name: 'afficheurs-ferrovia-prod', + script: 'npx', + args: 'serve -s build -l 4001', + cwd: __dirname, + instances: 1, + autorestart: true, + watch: false, + max_memory_restart: '500M', + env: { + NODE_ENV: 'production', + PORT: 4001, + }, + }, + ], +};