Skip to content
Snippets Groups Projects
Commit 99173943 authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

place env specific database configuration in configuration.js

parent 478cc4ba
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ substitution = require('../libs/substitute.js');
logging = require("../libs/logging.js");
// open the databse
db.open();
db.open(configuration.get('database'));
// looks unused, see run.js
// const STATIC_DIR = path.join(path.dirname(__dirname), "static");
......
......@@ -26,28 +26,32 @@ const g_configs = {
port: '443',
scheme: 'https',
use_minified_resources: true,
log_path: '/home/browserid/var/'
log_path: '/home/browserid/var/',
database: { driver: "mysql" }
},
development: {
hostname: 'dev.diresworb.org',
port: '443',
scheme: 'https',
use_minified_resources: true,
log_path: '/home/browserid/var/'
log_path: '/home/browserid/var/',
database: { driver: "mysql" }
},
beta: {
hostname: 'diresworb.org',
port: '443',
scheme: 'https',
use_minified_resources: true,
log_path: '/home/browserid/var/'
log_path: '/home/browserid/var/',
database: { driver: "mysql" }
},
local: {
hostname: '127.0.0.1',
port: '10002',
scheme: 'http',
use_minified_resources: false,
log_path: './'
log_path: './',
database: { driver: "json" }
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment