mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
require db
This commit is contained in:
2
app.js
2
app.js
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user