Skip to content

Commit 8d3cba0

Browse files
committed
🧪TEST: Puerto
1 parent db91a69 commit 8d3cba0

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎app/config/env-config.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const HOST = HEROKU || `http://localhost:${APP_PORT}`;
55

66
// variables de entorno
77
module.exports = {
8-
"process.env.PORT": APP_PORT,
8+
"process.env.PORT9": APP_PORT,
99
"process.env.ODBC": `mongodb+srv://${USER_DB}:${PASS}@cluster0-eke4y.mongodb.net/${DB}?retryWrites=true&w=majority`,
1010
"process.env.HOST": HOST,
1111
"process.env.CONFIG": {

‎app/src/server/index.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import ApiRouter from "./router";
1111

1212
// ======================== CONSTANTES ======================== //
1313

14-
const APP_PORT = process.env.PORT;
14+
const APP_PORT = process.env.PORT || 3000;
1515
const ROOT_PATH = Path.join(__dirname, "../../");
1616
const Helpers = Tools.instance;
1717
const Server = Express();
@@ -70,7 +70,6 @@ Server.use("/", (request, response) => {
7070
/**
7171
* Conexión a MongoDB Atlas.
7272
*/
73-
console.log(process.env.ODBC);
7473
Mongoose.connect(process.env.ODBC, process.env.CONFIG, (mongoError) => {
7574
if (mongoError) {
7675
Helpers.messages("Problemas de conexión a MongoDB Atlas", "e");

0 commit comments

Comments
 (0)