Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-activity-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
毕凯
2016-04-08 09:55:07 +0800
Commit
51740b7feba1bf3e081e1ee3cd4469c2acced3a1
1 parent
c9704df5
增加测试环境配置
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
config/config.test.js
config/index.js
config/config.test.js
0 → 100644
View file @
51740b7
module
.
exports
=
{
assetsUrl
:
'//activity.yohobuy.com'
,
sessionRedis
:
{
host
:
'127.0.0.1'
,
port
:
6379
,
prefix
:
'activity-session-test:'
,
ttl
:
3600
// session 默认有效期
},
sessionName
:
'yoho-activity-test'
,
sessionSecret
:
'testsession'
};
...
...
config/index.js
View file @
51740b7
...
...
@@ -16,4 +16,8 @@ if (process.env.NODE_ENV !== 'production') {
config
=
Object
.
assign
(
config
,
require
(
'./config.dev'
));
}
if
(
process
.
env
.
NODE_ENV
!==
'test'
)
{
config
=
Object
.
assign
(
config
,
require
(
'./config.test'
));
}
module
.
exports
=
config
;
...
...
Please
register
or
login
to post a comment