Browse Source

Merge branch 'hotfix/webhookFix'

Jérôme BUISINE 2 years ago
parent
commit
7392030c58
1 changed files with 1 additions and 1 deletions
  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('.')