mirror of
https://github.com/status-im/github-comment-manager.git
synced 2025-02-21 05:38:24 +00:00
fix changing defaults with env variables
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
3556d6e7a7
commit
e59d78cccc
@ -6,12 +6,12 @@ import Builds from './builds'
|
|||||||
import Comments from './comments'
|
import Comments from './comments'
|
||||||
|
|
||||||
/* DEFAULTS */
|
/* DEFAULTS */
|
||||||
const LISTEN_PORT = process.env.LISTEN_PORT || 8000
|
const LISTEN_PORT = process.env.LISTEN_PORT || 8000
|
||||||
const GH_TOKEN = process.env.GH_TOKEN || null
|
const GH_TOKEN = process.env.GH_TOKEN || null
|
||||||
const GH_REPO_OWNER = 'status-im'
|
const GH_REPO_OWNER = process.env.GH_REPO_OWNER || 'status-im'
|
||||||
const GH_REPO_NAME = 'status-react'
|
const GH_REPO_NAME = process.env.GH_REPO_NAME || 'status-react'
|
||||||
const DB_PATH = '/tmp/builds.db'
|
const DB_PATH = process.env.DB_PATH || '/tmp/builds.db'
|
||||||
const DB_SAVE_INTERVAL = 5000
|
const DB_SAVE_INTERVAL = process.env.DB_SAVE_INTERVAL || 5000
|
||||||
|
|
||||||
/* to store current builds bound to a PR */
|
/* to store current builds bound to a PR */
|
||||||
const builds = new Builds(DB_PATH, DB_SAVE_INTERVAL)
|
const builds = new Builds(DB_PATH, DB_SAVE_INTERVAL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user