From f7d4a9cd07ddfcb5839397441d29382878bbfa75 Mon Sep 17 00:00:00 2001 From: Naida Vatric Date: Mon, 10 Feb 2020 21:15:28 +0100 Subject: [PATCH] Renamed settings var to describe purpose. --- app/config/appConfig.js | 3 +-- development.env | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/config/appConfig.js b/app/config/appConfig.js index 3e6003f..1ed59a3 100644 --- a/app/config/appConfig.js +++ b/app/config/appConfig.js @@ -9,7 +9,7 @@ const APP_URL = ? process.env.APP_URL || "http://market-alarm" : process.env.APP_URL || `${APP_BASE_URL}:${APP_PORT}`; -const STAGING = process.env.SETTINGS !== "production"; +const STAGING = process.env.ENVIRONMENT !== "production"; const DEFAULT_TIMEZONE = "Europe/Sarajevo"; @@ -55,5 +55,4 @@ module.exports = { STAGING, CHECK_UP_DAYS, PROSTOR_LOGIN - }; diff --git a/development.env b/development.env index bbfda0e..683fe65 100644 --- a/development.env +++ b/development.env @@ -8,7 +8,7 @@ SEQUELIZE_LOGGING=0- no sequelize logging, 1- log to the console PORT=Port for the app, defaults to 5000 APP_BASE_URL=base url for the app -SETTINGS=Variable to denote development, staging and production +ENVIRONMENT=Variable to denote development, staging and production MAX_REAL_ESTATES_IN_EMAIL=Max number of real estates that will be shown in email, others will be truncated and URL with full list will be shwon -- 2.47.3