Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yysh5
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data_server
yysh5
Commits
934c92cc
Commit
934c92cc
authored
May 06, 2019
by
姜登
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
yys
parent
2df247e9
Pipeline
#6945
passed with stage
in 11 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
3 deletions
+29
-3
app.js
app/app.js
+10
-0
notifyUrl.js
app/schedule/notifyUrl.js
+2
-0
config.local.js
config/config.local.js
+7
-0
config.prod.js
config/config.prod.js
+10
-3
No files found.
app/app.js
0 → 100644
View file @
934c92cc
module
.
exports
=
app
=>
{
// 自定义内容
app
.
beforeStart
(
async
()
=>
{
// 应用会等待这个函数执行完成才启动
app
.
projectName
=
'eggManual'
console
.
log
(
"==app beforeStart=="
);
});
};
\ No newline at end of file
app/schedule/notifyUrl.js
View file @
934c92cc
...
...
@@ -26,6 +26,8 @@ module.exports = {
});
ctx
.
app
.
notifyMap
=
notifyMap
;
}
ctx
.
logger
.
info
(
ctx
.
app
.
projectName
)
// console.log(await ctx.helper.sendMsg({ message: 'test' }));
}
catch
(
e
)
{
ctx
.
logger
.
error
(
'【schedule/notifyUrlTask】catch error:'
,
JSON
.
stringify
(
e
));
}
...
...
config/config.local.js
View file @
934c92cc
...
...
@@ -14,6 +14,13 @@ module.exports = () => {
db
:
0
,
},
};
config
.
JBnotifyCenter
=
{
baseURL
:
'https://notifier.getxumi.com/api/notify'
,
settingid
:
'5ccfcb723de62900010872e2'
,
appSecret
:
'a643bd55222b49c2a2baefa7d98679eb'
,
};
config
.
taskAPI
=
{
host
:
'http://tm.51gjj.com:4829'
,
createTaskUrl
:
'/thxdServices/createThxdTask'
,
...
...
config/config.prod.js
View file @
934c92cc
...
...
@@ -12,11 +12,18 @@ module.exports = () => {
config
.
redis
=
{
client
:
{
port
:
6379
,
host
:
process
.
env
.
REDIS_HOST
,
host
:
process
.
env
.
REDIS_HOST
||
'127.0.0.1'
,
password
:
process
.
env
.
REDIS_PWD
||
'DEV8redis'
,
db
:
0
,
},
};
config
.
JBnotifyCenter
=
{
baseURL
:
'https://notifier.getxumi.com/api/notify'
,
settingid
:
process
.
env
.
NOTIFY_CENTER
||
'5cbe89d923775d000163d384'
,
appSecret
:
'a643bd55222b49c2a2baefa7d98679eb'
,
};
config
.
taskAPI
=
{
host
:
process
.
env
.
TASKAPI_HOST
||
'http://tm.51gjj.com:4829'
,
createTaskUrl
:
'/thxdServices/createThxdTask'
,
...
...
@@ -96,8 +103,8 @@ module.exports = () => {
dialect
:
'mysql'
,
host
:
process
.
env
.
MYSQL_PACHONG_HOST
||
'rm-bp1272001633qc0x9o.mysql.rds.aliyuncs.com'
,
database
:
process
.
env
.
MYSQL_DATA_SERVER_DB_NAME
||
'data_service_dev'
,
username
:
process
.
env
.
MYSQL_USER
||
'
kf_jiandeng
'
,
password
:
process
.
env
.
MYSQL_PWD
||
'
Zg23Is9c7d2uKz15abZcV
'
,
username
:
process
.
env
.
MYSQL_USER
||
'
hexin
'
,
password
:
process
.
env
.
MYSQL_PWD
||
'
gYUHszn9#q
'
,
port
:
process
.
env
.
MYSQL_PORT
||
3306
,
}],
};
...
...
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