add ENV variable to control crawler execution
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user