Skip to content

Commit a42fdda

Browse files
committed
Fix absolute path config files in birdhoused
1 parent 2b1b25a commit a42fdda

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/birdhoused/lib/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
'use strict';
22

33
var assert = require('assert');
4-
var path = require('path');
4+
var fs = require('fs');
55

66
// We namespace to `birdhouse` so we can just reuse SeaGL/av-linux' config file
77
// TODO figure out if we should like, loop waiting for config to become available in prod or something
88
assert(process.argv[2], 'config file must be passed as an argument');
9-
var config = require(path.join('..', process.argv[2])).birdhouse;
9+
var config = JSON.parse(fs.readFileSync(process.argv[2])).birdhouse;
1010

1111
module.exports = config;
1212

0 commit comments

Comments
 (0)