Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
srvpro
Commits
f9321212
Commit
f9321212
authored
9 years ago
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nconf name
parent
69d2c26d
master
athletic-check
auth
chall
cloud-replay-test-2
database
dependabot/npm_and_yarn/ws-3.3.1
develop
dockernew
extime
github/fork/Helicosaurus/patch-1
hide_name
hook
improves
info
kick_reconnect
libevent21
mycard-improve
neos
neos_dev
next-mt
patch-mdpro3-deck
replay_delay
server-merge-1353
sharp
stand
support_version
travis
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
ygopro-server.coffee
ygopro-server.coffee
+3
-2
ygopro-server.js
ygopro-server.js
+2
-2
No files found.
ygopro-server.coffee
View file @
f9321212
...
...
@@ -24,13 +24,14 @@ moment = require 'moment'
#配置
nconf
=
require
'nconf'
nconf
.
file
(
'./config.user.json'
)
nconf
.
file
(
'user'
,
'./config.user.json'
)
#nconf.file('user2', './config.user2.json')
defaultconfig
=
require
(
'./config.json'
)
nconf
.
defaults
(
defaultconfig
)
settings
=
global
.
settings
=
nconf
.
get
()
nconf
.
myset
=
(
settings
,
path
,
val
)
->
nconf
.
set
(
path
,
val
)
nconf
.
save
()
nconf
.
save
(
'user'
)
log
.
info
(
"setting changed"
,
path
,
val
)
path
=
path
.
split
(
':'
)
if
path
.
length
==
0
...
...
This diff is collapsed.
Click to expand it.
ygopro-server.js
View file @
f9321212
...
...
@@ -36,7 +36,7 @@
nconf
=
require
(
'
nconf
'
);
nconf
.
file
(
'
./config.user.json
'
);
nconf
.
file
(
'
user
'
,
'
./config.user.json
'
);
defaultconfig
=
require
(
'
./config.json
'
);
...
...
@@ -47,7 +47,7 @@
nconf
.
myset
=
function
(
settings
,
path
,
val
)
{
var
key
,
target
;
nconf
.
set
(
path
,
val
);
nconf
.
save
();
nconf
.
save
(
'
user
'
);
log
.
info
(
"
setting changed
"
,
path
,
val
);
path
=
path
.
split
(
'
:
'
);
if
(
path
.
length
===
0
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment