Skip to content
Snippets Groups Projects
Commit 7db6448e authored by mluto's avatar mluto
Browse files

Load npm before everything else in checkPad.js

parent 5eb09f98
No related branches found
No related tags found
No related merge requests found
......@@ -10,15 +10,25 @@ if(process.argv.length != 3)
//get the padID
var padId = process.argv[2];
//initalize the database
var settings = require("../src/node/utils/Settings");
//initalize the variables
var db, settings, padManager;
var npm = require("../src/node_modules/npm");
var async = require("../src/node_modules/async");
var db = require('../src/node/db/DB');
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
var padManager;
async.series([
//load npm
function(callback) {
npm.load({}, function(er) {
callback(er);
})
},
//load modules
function(callback) {
settings = require('../src/node/utils/Settings');
db = require('../src/node/db/DB');
},
//intallize the database
function (callback)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment