Add PM2 ecosystem config

This commit is contained in:
Wycz
2026-09-08 08:33:24 +02:00
parent baa93cf221
commit 2d823cc82a
+20
View File
@@ -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,
},
],
};