Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
TarsWeb
Commits
4124c156
Commit
4124c156
authored
4 years ago
by
ruanshudong
Browse files
Options
Download
Email Patches
Plain Diff
fix deploy multi server bug
parent
f2e086d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/controller/deploy/DeployServerController.js
+11
-11
app/controller/deploy/DeployServerController.js
with
11 additions
and
11 deletions
+11
-11
app/controller/deploy/DeployServerController.js
+
11
-
11
View file @
4124c156
...
...
@@ -57,18 +57,18 @@ const serverConfStruct = {
};
DeployServerController
.
deployServer
=
async
(
ctx
)
=>
{
var
params
=
ctx
.
paramsObj
;
var
params
=
ctx
.
paramsObj
;
if
(
params
.
node_name
)
{
for
(
var
i
=
0
;
i
<
adapters
.
length
;
i
++
)
{
if
(
!
adapters
[
i
].
node_name
)
{
adapters
[
i
].
node_name
=
params
.
node_name
;
}
}
}
let
adapters
=
params
.
adapters
;
if
(
params
.
node_name
)
{
for
(
var
i
=
0
;
i
<
adapters
.
length
;
i
++
)
{
if
(
!
adapters
[
i
].
node_name
)
{
adapters
[
i
].
node_name
=
params
.
node_name
;
}
}
}
let
node_name_list
=
[];
for
(
var
i
=
0
;
i
<
adapters
.
length
;
i
++
)
{
var
nn
=
adapters
[
i
].
node_name
;
...
...
@@ -112,4 +112,4 @@ DeployServerController.serverTypeList = async (ctx) => {
};
module
.
exports
=
DeployServerController
;
\ No newline at end of file
module
.
exports
=
DeployServerController
;
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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