Update environment variables and add flatpickr dependency
This commit is contained in:
parent
5a5ba850ba
commit
5828395907
@ -1,13 +1,13 @@
|
||||
PORT=3001
|
||||
DB_HOST=194.164.175.51
|
||||
DB_USER=roganet
|
||||
DB_PASSWORD=aB0iaN.2o17!0-dB$9
|
||||
DB_PASSWORD=bdIRGLnet2905*/
|
||||
DB_NAME=abian_app_produccion
|
||||
JWT_SECRET=9c64f2727d53bfefaaa17a5fda5009ffe93cae904860c659bd18d2d14ad6b467
|
||||
|
||||
DB_HOST_P = 194.164.175.51
|
||||
DB_USER_P = roganet
|
||||
DB_PASSWORD_P = aB0iaN.2o17!0-dB$9
|
||||
DB_PASSWORD_P = bdIRGLnet2905*/
|
||||
DB_NAME_P = abian_app_produccion
|
||||
|
||||
# Firebase Admin (credenciales y config)
|
||||
|
||||
9
app.js
9
app.js
@ -103,14 +103,19 @@ app.get('/', (req, res) => {
|
||||
});
|
||||
|
||||
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) {
|
||||
app.listen('passenger', () => {
|
||||
console.log('Servidor corriendo bajo Passenger');
|
||||
logStartup('passenger', 'passenger');
|
||||
});
|
||||
} else if (require.main === module) {
|
||||
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
7
package-lock.json
generated
@ -13,6 +13,7 @@
|
||||
"express": "^4.19.2",
|
||||
"express-rate-limit": "^8.2.1",
|
||||
"firebase-admin": "^13.6.0",
|
||||
"flatpickr": "4.6.13",
|
||||
"helmet": "^8.1.0",
|
||||
"jsonwebtoken": "^9.0.2",
|
||||
"md5": "^2.3.0",
|
||||
@ -1453,6 +1454,12 @@
|
||||
"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": {
|
||||
"version": "3.3.1",
|
||||
"resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz",
|
||||
|
||||
@ -16,6 +16,7 @@
|
||||
"express": "^4.19.2",
|
||||
"express-rate-limit": "^8.2.1",
|
||||
"firebase-admin": "^13.6.0",
|
||||
"flatpickr": "4.6.13",
|
||||
"helmet": "^8.1.0",
|
||||
"jsonwebtoken": "^9.0.2",
|
||||
"md5": "^2.3.0",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user