Pārlūkot izejas kodu

Merge tag 'webhookFix' into develop

Fix the port configuration of the webhook
Jérôme BUISINE 6 gadi atpakaļ
vecāks
revīzija
1535fa2939
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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('.')