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
854cf634
Commit
854cf634
authored
Aug 20, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置修改
parent
fe9c1e71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
brg-queue-center/app/config/settings.js
+3
-3
No files found.
brg-queue-center/app/config/settings.js
View file @
854cf634
...
@@ -9,7 +9,7 @@ var ENVINPUT = {
...
@@ -9,7 +9,7 @@ var ENVINPUT = {
REDIS_PWD
:
process
.
env
.
REDIS_PWD
,
REDIS_PWD
:
process
.
env
.
REDIS_PWD
,
REDIS_DB
:
process
.
env
.
QUEUE_REDIS_DB
,
REDIS_DB
:
process
.
env
.
QUEUE_REDIS_DB
,
DB_NAME
:
process
.
env
.
QUEUE_DB_NAME
,
DB_NAME
:
process
.
env
.
QUEUE_DB_NAME
,
APP_ENV
:
process
.
env
.
APP_ENV
?
process
.
env
.
APP_ENV
:
"
te
st"
,
//运行环境
APP_ENV
:
process
.
env
.
APP_ENV
?
process
.
env
.
APP_ENV
:
"
localho
st"
,
//运行环境
CONSUMER_NAME
:
process
.
env
.
CONSUMER_NAME
||
"publicServiceAllocation.publicConsumer"
,
//消费者名称
CONSUMER_NAME
:
process
.
env
.
CONSUMER_NAME
||
"publicServiceAllocation.publicConsumer"
,
//消费者名称
QUEUED_NAME
:
process
.
env
.
QUEUED_NAME
||
"SYTXPUBLIC-MSGQ"
,
//队列名称,FAIL-失败队列(队列和失败队列一对存在进行部署)
QUEUED_NAME
:
process
.
env
.
QUEUED_NAME
||
"SYTXPUBLIC-MSGQ"
,
//队列名称,FAIL-失败队列(队列和失败队列一对存在进行部署)
};
};
...
@@ -20,7 +20,7 @@ var settings = {
...
@@ -20,7 +20,7 @@ var settings = {
basepath
:
path
.
normalize
(
path
.
join
(
__dirname
,
'../..'
)),
basepath
:
path
.
normalize
(
path
.
join
(
__dirname
,
'../..'
)),
port
:
process
.
env
.
NODE_PORT
||
4018
,
port
:
process
.
env
.
NODE_PORT
||
4018
,
redis
:
function
()
{
redis
:
function
()
{
if
(
this
.
env
==
"
dev"
||
this
.
env
==
"te
st"
)
{
if
(
this
.
env
==
"
localho
st"
)
{
var
localsettings
=
require
(
"./localsettings"
);
var
localsettings
=
require
(
"./localsettings"
);
return
localsettings
.
redis
;
return
localsettings
.
redis
;
}
else
{
}
else
{
...
@@ -33,7 +33,7 @@ var settings = {
...
@@ -33,7 +33,7 @@ var settings = {
}
}
},
},
database
:
function
()
{
database
:
function
()
{
if
(
this
.
env
==
"
dev"
||
this
.
env
==
"te
st"
)
{
if
(
this
.
env
==
"
localho
st"
)
{
var
localsettings
=
require
(
"./localsettings"
);
var
localsettings
=
require
(
"./localsettings"
);
return
localsettings
.
database
;
return
localsettings
.
database
;
}
else
{
}
else
{
...
...
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