fix changing defaults with env variables

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2018-12-13 23:28:50 +01:00
parent 3556d6e7a7
commit e59d78cccc
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 6 additions and 6 deletions

View File

@ -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)