2023-09-22 20:39:37 +00:00
|
|
|
var config = module.exports;
|
|
|
|
var PRODUCTION = process.env.NODE_ENV === 'production';
|
|
|
|
const bole = require('bole');
|
|
|
|
|
|
|
|
config.express = {
|
|
|
|
port: process.env.EXPRESS_PORT || 3000,
|
|
|
|
ip: '127.0.0.1',
|
|
|
|
};
|
|
|
|
|
|
|
|
if (PRODUCTION) {
|
|
|
|
config.express.ip = '0.0.0.0';
|
2023-09-28 18:13:59 +00:00
|
|
|
config.db_path = "db/results.db";
|
2023-09-22 20:39:37 +00:00
|
|
|
bole.output({ level: 'info', stream: process.stdout })
|
2023-09-28 18:13:59 +00:00
|
|
|
} else {
|
|
|
|
config.db_path = ":memory:";
|
|
|
|
bole.output({ level: 'debug', stream: process.stdout })
|
2023-09-22 20:39:37 +00:00
|
|
|
}
|