mirror of
https://github.com/koodiklinikka/koodiklinikka.fi-api.git
synced 2026-01-26 03:34:03 +00:00
make config.json file optional
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
var _ = require('lodash');
|
||||
var config = require('../config.json');
|
||||
var config = {};
|
||||
|
||||
try {
|
||||
config = require('../config.json');
|
||||
} catch(e) {
|
||||
console.log('Couldn\'t read config.json file');
|
||||
}
|
||||
|
||||
var env = process.env.NODE_ENV || 'development';
|
||||
|
||||
// TWITTER_CONSUMER_KEY => twitter.consumerKey
|
||||
|
||||
Reference in New Issue
Block a user