Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
duniter-currency-monit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
nodes
typescript
modules
duniter-currency-monit
Commits
12a16e62
Commit
12a16e62
authored
5 years ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
[add] new `--reset-data` option to fully reset Monit's local data (blockchain)
parent
062e0b7b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
index.js
+2
-1
2 additions, 1 deletion
index.js
lib/main.js
+1
-1
1 addition, 1 deletion
lib/main.js
lib/webserver2.ts
+1
-1
1 addition, 1 deletion
lib/webserver2.ts
with
4 additions
and
3 deletions
index.js
+
2
−
1
View file @
12a16e62
...
...
@@ -42,7 +42,8 @@ module.exports = {
},
cliOptions
:
[
{
value
:
'
--monitor
'
,
desc
:
'
Enable performance monitoring of DB access
'
}
{
value
:
'
--monitor
'
,
desc
:
'
Enable performance monitoring of DB access
'
},
{
value
:
'
--reset-data
'
,
desc
:
'
Forces Monit to reset its indexed data on startup
'
},
],
cli
:
[{
...
...
This diff is collapsed.
Click to expand it.
lib/main.js
+
1
−
1
View file @
12a16e62
...
...
@@ -48,7 +48,7 @@ module.exports = (duniterServer, host, port, appParente, program) => co(function
console
.
log
(
"
module currency-monit started
"
);
// Specialized node's UI
let
httpServer
=
webserver
(
host
,
port
,
appParente
,
duniterServer
,
monitDatasPath
,
offset
,
cache
);
let
httpServer
=
webserver
(
host
,
port
,
appParente
,
duniterServer
,
monitDatasPath
,
offset
,
cache
,
program
.
resetData
);
yield
httpServer
.
openConnection
();
})
...
...
This diff is collapsed.
Click to expand it.
lib/webserver2.ts
+
1
−
1
View file @
12a16e62
...
...
@@ -16,7 +16,7 @@ const bodyParser = require('body-parser');
const
routes
=
require
(
__dirname
+
'
/../routes
'
);
const
tpl
=
require
(
__dirname
+
'
/tplit.js
'
);
module
.
exports
=
(
host
:
any
,
port
:
any
,
appParente
:
any
,
duniterServer
:
Server
,
monitDatasPath
:
any
,
offset
:
any
,
cache
:
any
,
resetData
:
boolean
=
false
)
=>
{
module
.
exports
=
(
host
:
any
,
port
:
any
,
appParente
:
any
,
duniterServer
:
Server
,
monitDatasPath
:
any
,
offset
:
any
,
cache
:
any
,
resetData
:
boolean
)
=>
{
var
app
=
express
();
...
...
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