start crawler loop when server is started

This commit is contained in:
Bilal Catic
2019-09-26 17:30:06 +02:00
parent 0b083a02e2
commit 2e92f961ff
6 changed files with 30 additions and 9 deletions

View File

@@ -8,8 +8,11 @@ const APP_URL =
const DEFAULT_TIMEZONE = "Europe/Sarajevo";
const CRAWLER_INTERVAL = parseInt(process.env.CRAWLER_INTERVAL) || 60;
module.exports = {
APP_PORT,
APP_URL,
DEFAULT_TIMEZONE
DEFAULT_TIMEZONE,
CRAWLER_INTERVAL
};