Update environment variables and add flatpickr dependency

This commit is contained in:
abiandev 2026-05-29 16:45:00 +02:00
parent 5a5ba850ba
commit 5828395907
4 changed files with 17 additions and 4 deletions

View File

@ -1,13 +1,13 @@
PORT=3001 PORT=3001
DB_HOST=194.164.175.51 DB_HOST=194.164.175.51
DB_USER=roganet DB_USER=roganet
DB_PASSWORD=aB0iaN.2o17!0-dB$9 DB_PASSWORD=bdIRGLnet2905*/
DB_NAME=abian_app_produccion DB_NAME=abian_app_produccion
JWT_SECRET=9c64f2727d53bfefaaa17a5fda5009ffe93cae904860c659bd18d2d14ad6b467 JWT_SECRET=9c64f2727d53bfefaaa17a5fda5009ffe93cae904860c659bd18d2d14ad6b467
DB_HOST_P = 194.164.175.51 DB_HOST_P = 194.164.175.51
DB_USER_P = roganet DB_USER_P = roganet
DB_PASSWORD_P = aB0iaN.2o17!0-dB$9 DB_PASSWORD_P = bdIRGLnet2905*/
DB_NAME_P = abian_app_produccion DB_NAME_P = abian_app_produccion
# Firebase Admin (credenciales y config) # Firebase Admin (credenciales y config)

9
app.js
View File

@ -103,14 +103,19 @@ app.get('/', (req, res) => {
}); });
const isPassengerRuntime = typeof global.PhusionPassenger !== 'undefined'; const isPassengerRuntime = typeof global.PhusionPassenger !== 'undefined';
const logStartup = (runtime, host) => {
const startedAt = new Date().toISOString();
const user = process.env.USER || process.env.LOGNAME || 'unknown';
console.log(`[${startedAt}] Servidor corriendo en ${host} runtime=${runtime} pid=${process.pid} user=${user}`);
};
if (isPassengerRuntime) { if (isPassengerRuntime) {
app.listen('passenger', () => { app.listen('passenger', () => {
console.log('Servidor corriendo bajo Passenger'); logStartup('passenger', 'passenger');
}); });
} else if (require.main === module) { } else if (require.main === module) {
app.listen(PORT, "127.0.0.1", () => { app.listen(PORT, "127.0.0.1", () => {
console.log(`Servidor corriendo en puerto ${PORT}`); logStartup('node', `127.0.0.1:${PORT}`);
}); });
} }

7
package-lock.json generated
View File

@ -13,6 +13,7 @@
"express": "^4.19.2", "express": "^4.19.2",
"express-rate-limit": "^8.2.1", "express-rate-limit": "^8.2.1",
"firebase-admin": "^13.6.0", "firebase-admin": "^13.6.0",
"flatpickr": "4.6.13",
"helmet": "^8.1.0", "helmet": "^8.1.0",
"jsonwebtoken": "^9.0.2", "jsonwebtoken": "^9.0.2",
"md5": "^2.3.0", "md5": "^2.3.0",
@ -1453,6 +1454,12 @@
"url": "https://opencollective.com/node-fetch" "url": "https://opencollective.com/node-fetch"
} }
}, },
"node_modules/flatpickr": {
"version": "4.6.13",
"resolved": "https://registry.npmjs.org/flatpickr/-/flatpickr-4.6.13.tgz",
"integrity": "sha512-97PMG/aywoYpB4IvbvUJi0RQi8vearvU0oov1WW3k0WZPBMrTQVqekSX5CjSG/M4Q3i6A/0FKXC7RyAoAUUSPw==",
"license": "MIT"
},
"node_modules/foreground-child": { "node_modules/foreground-child": {
"version": "3.3.1", "version": "3.3.1",
"resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz",

View File

@ -16,6 +16,7 @@
"express": "^4.19.2", "express": "^4.19.2",
"express-rate-limit": "^8.2.1", "express-rate-limit": "^8.2.1",
"firebase-admin": "^13.6.0", "firebase-admin": "^13.6.0",
"flatpickr": "4.6.13",
"helmet": "^8.1.0", "helmet": "^8.1.0",
"jsonwebtoken": "^9.0.2", "jsonwebtoken": "^9.0.2",
"md5": "^2.3.0", "md5": "^2.3.0",