-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use config in root app directory
BREAKING CHANGE: configuration files must now be mounted at `/opt/arena/index.json` instead of `/opt/arena/src/server/config/index.json`. Failure to do so will result in Arena starting with an empty config.
- Loading branch information
Eli Skeggs
committed
Aug 4, 2020
1 parent
9ef953e
commit c9b4d44
Showing
2 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
const Arena = require('bull-arena'); | ||
|
||
Arena(); | ||
let config; | ||
try { | ||
config = require('./index.json'); | ||
} catch (err) { | ||
if (err.code !== 'MODULE_NOT_FOUND') { | ||
throw err; | ||
} | ||
} | ||
|
||
Arena(config); |