*: restructuring to make testing flow nicer
All checks were successful
Basic Checking / Explore-Gitea-Actions (push) Successful in 50s
All checks were successful
Basic Checking / Explore-Gitea-Actions (push) Successful in 50s
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
281945a672
commit
ef4e816dac
12 changed files with 10 additions and 5 deletions
15
config.js
Normal file
15
config.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
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';
|
||||
bole.output({ level: 'debug', stream: process.stdout })
|
||||
} else {
|
||||
bole.output({ level: 'info', stream: process.stdout })
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue