initial commit
This commit is contained in:
commit
4b60ece582
327 changed files with 28286 additions and 0 deletions
4
magnus/config/CMakeLists.txt
Normal file
4
magnus/config/CMakeLists.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
cmake_minimum_required(VERSION 2.8.12)
|
||||
|
||||
configure_file(index.js index.js)
|
||||
configure_file(config.json config.json)
|
9
magnus/config/config.json
Normal file
9
magnus/config/config.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"webServerPort": 3000,
|
||||
"webSocketServerPort": 8081,
|
||||
"version": "0.0.2",
|
||||
"build": "debug",
|
||||
"httpLog": false,
|
||||
"testing": true,
|
||||
"modelDestructionTimeout": 120000
|
||||
}
|
8
magnus/config/index.js
Normal file
8
magnus/config/index.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
var nconf = require("nconf");
|
||||
var path = require("path");
|
||||
|
||||
nconf.argv()
|
||||
.env()
|
||||
.file({file: path.join(__dirname, 'config.json')});
|
||||
|
||||
module.exports = nconf;
|
Loading…
Add table
Add a link
Reference in a new issue