add ENV variable to control crawler execution

This commit is contained in:
Bilal Catic
2019-09-26 23:55:34 +02:00
parent 2e92f961ff
commit c5a720484a
4 changed files with 19 additions and 15 deletions

View File

@@ -9,10 +9,12 @@ const APP_URL =
const DEFAULT_TIMEZONE = "Europe/Sarajevo";
const CRAWLER_INTERVAL = parseInt(process.env.CRAWLER_INTERVAL) || 60;
const STOP_CRAWLER = !!parseInt(process.env.STOP_CRAWLER);
module.exports = {
APP_PORT,
APP_URL,
DEFAULT_TIMEZONE,
CRAWLER_INTERVAL
CRAWLER_INTERVAL,
STOP_CRAWLER
};