Changed not to use NODE_ENV variable.

This commit is contained in:
Naida Vatric
2020-01-31 22:47:47 +01:00
parent b9122f8f00
commit 712cde1632
2 changed files with 4 additions and 1 deletions

View File

@@ -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.NODE_ENV !== "production";
const STAGING = process.env.SETTINGS !== "production";
const DEFAULT_TIMEZONE = "Europe/Sarajevo";

View File

@@ -8,6 +8,9 @@ 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
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
MAX_REAL_ESTATES_IN_FIRST_EMAIL=Max number of real estates that will be shown in first (welcome) email