Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
duniter
Commits
1be497b4
Commit
1be497b4
authored
10 years ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
Fix #103: remote MongoDB parameters
parent
f1e3466a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/ucoind
+2
-6
2 additions, 6 deletions
bin/ucoind
share/docker/run.sh
+0
-2
0 additions, 2 deletions
share/docker/run.sh
with
2 additions
and
8 deletions
bin/ucoind
+
2
−
6
View file @
1be497b4
...
...
@@ -32,8 +32,6 @@ program
.
usage
(
'
<command> [options]
'
)
.
option
(
'
-p, --port <port>
'
,
'
Port to listen for requests
'
,
parseInt
)
.
option
(
'
-c, --currency <name>
'
,
'
Name of the currency managed by this node.
'
)
.
option
(
'
--mhost <host>
'
,
'
MongoDB host.
'
)
.
option
(
'
--mport <port>
'
,
'
MongoDB port.
'
)
.
option
(
'
-d, --mdb <name>
'
,
'
MongoDB database name (defaults to "ucoin_default").
'
)
.
option
(
'
--salt <salt>
'
,
'
Key salt to generate this key
\'
s secret key
'
)
.
option
(
'
--passwd <password>
'
,
'
Password to generate this key
\'
s secret key
'
)
...
...
@@ -571,7 +569,6 @@ function commandLineConf(conf) {
}
},
db
:
{
mhost
:
program
.
mhost
,
mport
:
program
.
mport
,
mdb
:
program
.
mdb
},
...
...
@@ -640,7 +637,6 @@ function commandLineConf(conf) {
if
(
cli
.
cpu
)
conf
.
cpu
=
Math
.
max
(
0.01
,
Math
.
min
(
1.0
,
cli
.
cpu
));
if
(
cli
.
logs
.
http
)
conf
.
httplogs
=
true
;
if
(
cli
.
logs
.
nohttp
)
conf
.
httplogs
=
false
;
if
(
cli
.
db
.
mhost
)
conf
.
mhost
=
cli
.
db
.
mhost
;
if
(
cli
.
db
.
mport
)
conf
.
mport
=
cli
.
db
.
mport
;
if
(
cli
.
db
.
mdb
)
conf
.
mdb
=
cli
.
db
.
mdb
;
if
(
cli
.
isolate
)
conf
.
isolate
=
cli
.
isolate
;
...
...
@@ -656,7 +652,7 @@ function connect(callback) {
var
cbArgs
=
arguments
;
var
dbName
=
program
.
mdb
||
"
ucoin_default
"
;
var
server
=
ucoin
({
name
:
dbName
,
host
:
program
.
mhost
,
port
:
program
.
mport
},
commandLineConf
());
var
server
=
ucoin
({
name
:
dbName
},
commandLineConf
());
// Initialize server (db connection, ...)
server
.
connectDB
()
...
...
@@ -679,7 +675,7 @@ function service(callback) {
var
cbArgs
=
arguments
;
var
dbName
=
program
.
mdb
||
"
ucoin_default
"
;
var
server
=
ucoin
({
name
:
dbName
,
host
:
program
.
mhost
,
port
:
program
.
mport
},
commandLineConf
());
var
server
=
ucoin
({
name
:
dbName
},
commandLineConf
());
// Initialize server (db connection, ...)
server
.
initWithServices
()
...
...
This diff is collapsed.
Click to expand it.
share/docker/run.sh
+
0
−
2
View file @
1be497b4
...
...
@@ -5,6 +5,4 @@ sh setup.sh
echo
"Then run..."
ucoind start
\
--mhost
$MONGO_PORT_27017_TCP_ADDR
\
--mport
$MONGO_PORT_27017_TCP_PORT
\
--mdb
$MONGO_DB_NAME
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