Skip to content

Commit 4b889d5

Browse files
committed
fix repo deploy
1 parent 8c80757 commit 4b889d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ module.exports = {
5555
deploy: {
5656
githubHookPath: process.env.GITHUB_HOOK_PATH || '/secret',
5757
kpiBot: {
58-
repodId: 104037504,
58+
repoId: 104037504,
5959
devCommand: `pm2 deploy ${process.cwd()}/ecosystem.config.js development --force`,
6060
prodCommand: `pm2 deploy ${process.cwd()}/ecosystem.config.js development --force`,
6161
},

src/route/deploy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = router => {
88
if (process.env.NODE_ENV === 'development') {
99
router.post(deploy.githubHookPath, async ctx => {
1010
const { ref, repository } = ctx.request.body
11-
logger.info(`on commit ${repository.full_name}`)
11+
logger.info(`on commit ${repository.full_name} ${repository.id}`)
1212
let stdout
1313
let stderr
1414
switch (repository.id) {

0 commit comments

Comments
 (0)