浏览代码

Merge tag 'webhookFix' into develop

Fix the port configuration of the webhook
Jérôme BUISINE 6 年之前
父节点
当前提交
1535fa2939
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      webhook_deploy_gogs.js

+ 1 - 1
webhook_deploy_gogs.js

@@ -23,7 +23,7 @@ const { promisify } = require('util')
 const exec = promisify(require('child_process').exec)
 
 // The port which this script will listen on
-const port = 12345
+const port = parseInt(process.env.WEBHOOK_PORT, 10)
 
 // The path to the project directory
 const projectPath = path.resolve('.')