Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
2b52d55f
Commit
2b52d55f
authored
Aug 19, 2020
by
v_vyisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改环境配置
parent
96858a96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
center-manage/app/config/settings.js
+8
-2
No files found.
center-manage/app/config/settings.js
View file @
2b52d55f
...
@@ -28,7 +28,14 @@ var settings = {
...
@@ -28,7 +28,14 @@ var settings = {
if
(
this
.
env
==
"localhost"
)
{
if
(
this
.
env
==
"localhost"
)
{
var
localsettings
=
require
(
"./localsettings"
);
var
localsettings
=
require
(
"./localsettings"
);
return
localsettings
.
kongurl
;
return
localsettings
.
kongurl
;
}
else
{
}
else
if
(
this
.
env
==
"test"
)
{
return
"http://kong-dbproxy.kong-test:8001/"
;
}
else
if
(
this
.
env
==
"pre"
)
{
return
"http://kong-dbproxy.kong-pre:8001/"
;
}
else
{
return
"http://kong-dbproxy.kong:8001/"
;
return
"http://kong-dbproxy.kong:8001/"
;
}
}
},
},
...
@@ -66,7 +73,6 @@ var settings = {
...
@@ -66,7 +73,6 @@ var settings = {
database
:
function
()
{
database
:
function
()
{
if
(
this
.
env
==
"localhost"
)
{
if
(
this
.
env
==
"localhost"
)
{
var
localsettings
=
require
(
"./localsettings"
);
var
localsettings
=
require
(
"./localsettings"
);
console
.
log
(
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>...."
)
return
localsettings
.
database
;
return
localsettings
.
database
;
}
else
{
}
else
{
return
{
return
{
...
...
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