Parcourir la source

Merge branch 'hotfix/webhookFix'

Jérôme BUISINE il y a 5 ans
Parent
commit
7392030c58
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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)
 const exec = promisify(require('child_process').exec)
 
 
 // The port which this script will listen on
 // 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
 // The path to the project directory
 const projectPath = path.resolve('.')
 const projectPath = path.resolve('.')