require db

This commit is contained in:
psychobunny
2014-03-02 14:00:28 -05:00
parent 4d598dcd63
commit 936e52a43f
2 changed files with 1 additions and 2 deletions

2
app.js
View File

@@ -242,7 +242,7 @@ function reset() {
function shutdown(code) { function shutdown(code) {
winston.info('[app] Shutdown (SIGTERM/SIGINT) Initialised.'); winston.info('[app] Shutdown (SIGTERM/SIGINT) Initialised.');
db.close(); require('./src/database').close();
winston.info('[app] Database connection closed.'); winston.info('[app] Database connection closed.');
winston.info('[app] Shutdown complete.'); winston.info('[app] Shutdown complete.');

View File

@@ -40,7 +40,6 @@ if(nconf.get('ssl')) {
(function (app) { (function (app) {
"use strict"; "use strict";
// this can be moved to app.js
var clientScripts; var clientScripts;
plugins.ready(function() { plugins.ready(function() {