Iniziale
This commit is contained in:
30
ecosystem.config.js
Executable file
30
ecosystem.config.js
Executable file
@@ -0,0 +1,30 @@
|
||||
module.exports = {
|
||||
apps : [
|
||||
{
|
||||
name: "OpenAI",
|
||||
script: "./bin/server.js",
|
||||
ignore_watch : ["node_modules"],
|
||||
interpreter: "/root/.nvm/versions/node/v18.19.0/bin/node",
|
||||
watch: false,
|
||||
//autorestart: true,
|
||||
instances: 1,
|
||||
env: {
|
||||
"PORT": 3100,
|
||||
"NODE_ENV": "development",
|
||||
},
|
||||
env_test: {
|
||||
"PORT": 3101,
|
||||
"NODE_ENV": "test",
|
||||
},
|
||||
env_production: {
|
||||
"PORT": 3100,
|
||||
"NODE_ENV": "production",
|
||||
},
|
||||
log_file: "logs/combined.outerr.log",
|
||||
error_file: "logs/err.log",
|
||||
out_file: "logs/out.log",
|
||||
merge_logs: true,
|
||||
log_date_format: "YYYY-MM-DD HH:mm:ss.SSSS Z"
|
||||
}
|
||||
]
|
||||
};
|
||||
Reference in New Issue
Block a user