Actualización de uso de entornos

This commit is contained in:
2025-08-18 14:39:19 +00:00
parent 2b47faf66a
commit aa04270550
4 changed files with 49 additions and 89 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ try {
dotenv.config({ path: path.resolve(__dirname, '../.env.test' )});
console.log(`Activando entorno de ->->${chalk.yellow(` TESTING `)}`);
} else if (process.env.NODE_ENV === 'production') {
dotenv.config({ path: path.resolve(__dirname, '../.env' )});
dotenv.config({ path: path.resolve(__dirname, '../.env.production' )});
console.log(`Activando entorno de ->->${chalk.red(` PRODUCTION `)}`);
}
} catch (error) {
+1 -1
View File
@@ -24,7 +24,7 @@ try {
dotenv.config({ path: path.resolve(__dirname, '../.env.test' )});
console.log(`Activando entorno de ->->${chalk.yellow(` TESTING `)}`);
} else if (process.env.NODE_ENV === 'production') {
dotenv.config({ path: path.resolve(__dirname, '../.env' )});
dotenv.config({ path: path.resolve(__dirname, '../.env.production' )});
console.log(`Activando entorno de ->->${chalk.red(` PRODUCTION `)}`);
}
} catch (error) {