- corretta configurazione

- fix problemi al database su piuchebuono una chiamata dava errore...
const c = ....
if (mycart && mycart.length > 0) {
This commit is contained in:
Surya Paolo
2025-03-10 19:59:03 +01:00
parent 4758ce0857
commit d106a59bb5
16 changed files with 77 additions and 68 deletions

21
ecosystem.config.pcb_test.js Executable file
View File

@@ -0,0 +1,21 @@
module.exports = {
apps: [
{
name: "PiuCheBuono (TEST)",
script: "/var/www/nodejs_test.piuchebuono_server/src/server/server.js",
ignore_watch: ["node_modules", "logs"],
interpreter: "/root/.nvm/versions/node/v22.13.1/bin/node",
instances: 1,
watch: false,
env: {
"PORT": 0,
"NODE_ENV": "test"
},
log_file: "logs/combined.test.outerr.log",
error_file: "logs/errtest.log",
out_file: "logs/outtest.log",
merge_logs: true,
log_date_format: "YYYY-MM-DD HH:mm:ss.SSSS Z"
}
]
};