From e59d78cccc17c3e422e7fd9a9303c136736acd7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Thu, 13 Dec 2018 23:28:50 +0100 Subject: [PATCH] fix changing defaults with env variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- src/server.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/server.js b/src/server.js index a8b8b43..a855dcf 100644 --- a/src/server.js +++ b/src/server.js @@ -6,12 +6,12 @@ import Builds from './builds' import Comments from './comments' /* DEFAULTS */ -const LISTEN_PORT = process.env.LISTEN_PORT || 8000 -const GH_TOKEN = process.env.GH_TOKEN || null -const GH_REPO_OWNER = 'status-im' -const GH_REPO_NAME = 'status-react' -const DB_PATH = '/tmp/builds.db' -const DB_SAVE_INTERVAL = 5000 +const LISTEN_PORT = process.env.LISTEN_PORT || 8000 +const GH_TOKEN = process.env.GH_TOKEN || null +const GH_REPO_OWNER = process.env.GH_REPO_OWNER || 'status-im' +const GH_REPO_NAME = process.env.GH_REPO_NAME || 'status-react' +const DB_PATH = process.env.DB_PATH || '/tmp/builds.db' +const DB_SAVE_INTERVAL = process.env.DB_SAVE_INTERVAL || 5000 /* to store current builds bound to a PR */ const builds = new Builds(DB_PATH, DB_SAVE_INTERVAL)