Add PM2 ecosystem config
This commit is contained in:
@@ -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,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user