require db

v1.18.x
psychobunny 11 years ago
parent 4d598dcd63
commit 936e52a43f

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

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

Loading…
Cancel
Save