Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
etherpad-lite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
runcon
etherpad-lite
Commits
7db6448e
Commit
7db6448e
authored
12 years ago
by
mluto
Browse files
Options
Downloads
Patches
Plain Diff
Load npm before everything else in checkPad.js
parent
5eb09f98
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/checkPad.js
+14
-4
14 additions, 4 deletions
bin/checkPad.js
with
14 additions
and
4 deletions
bin/checkPad.js
+
14
−
4
View file @
7db6448e
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment