Add maintenance mode and update to gracefully exit process on signal

This commit is contained in:
Cheng-Han, Wu
2016-06-01 14:18:54 +08:00
parent 27e17d7772
commit 16d5e3ea80
4 changed files with 43 additions and 3 deletions

View File

@@ -78,10 +78,12 @@ function getserverurl() {
}
var version = '0.4.0';
var maintenance = config.maintenance || false;
var cwd = path.join(__dirname, '..');
module.exports = {
version: version,
maintenance: maintenance,
debug: debug,
urlpath: urlpath,
port: port,