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