From 2d823cc82ab87c842109564f9a3fb65c56a9cd12 Mon Sep 17 00:00:00 2001 From: Wycz Date: Tue, 8 Sep 2026 08:33:24 +0200 Subject: [PATCH] Add PM2 ecosystem config --- ecosystem.config.cjs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ecosystem.config.cjs diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs new file mode 100644 index 0000000..30b99fe --- /dev/null +++ b/ecosystem.config.cjs @@ -0,0 +1,20 @@ +module.exports = { + apps: [ + { + name: "juanitosport", + cwd: "/opt/juanitosport", + script: "node_modules/.bin/next", + args: "start -p 3000", + instances: 1, + autorestart: true, + max_memory_restart: "1G", + env: { + NODE_ENV: "production", + PORT: 3000, + }, + out_file: "/var/log/juanitosport.out.log", + error_file: "/var/log/juanitosport.err.log", + time: true, + }, + ], +}; \ No newline at end of file