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
33da2c22
Commit
33da2c22
authored
Jul 01, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
1f669631
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
center-manage/app/config/settings.js
+3
-3
No files found.
center-manage/app/config/settings.js
View file @
33da2c22
var
path
=
require
(
'path'
);
var
localsettings
=
require
(
"./localsettings"
);
var
ENVINPUT
=
{
KONG_ADMIAN
:
process
.
env
.
KONG_ADMIAN
,
DB_HOST
:
process
.
env
.
DB_HOST
,
...
...
@@ -21,9 +20,10 @@ var settings = {
port
:
process
.
env
.
NODE_PORT
||
80
,
kongurl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
var
localsettings
=
require
(
"./localsettings"
);
return
localsettings
.
kongurl
;
}
else
{
return
ENVINPUT
.
KONG_ADMIAN
;
return
http
:
//paas-service:8001
;
}
},
icUrl
:
function
()
{
...
...
@@ -39,7 +39,7 @@ var settings = {
pmroleid
:
{
"ta"
:
1
,
"pr"
:
2
},
redis
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
var
localsettings
=
require
(
"./localsettings"
);
return
localsettings
.
redis
;
}
else
{
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