Still support PRIVATE_KEY env var

This commit is contained in:
Brandon Keepers 2017-03-18 12:42:02 -05:00
parent 89e3310582
commit e472931c02
No known key found for this signature in database
GPG Key ID: F9533396D5FACBF6
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ program
.option('-i, --integration <id>', 'ID of the GitHub Integration', process.env.INTEGRATION_ID)
.option('-s, --secret <secret>', 'Webhook secret of the GitHub Integration', process.env.WEBHOOK_SECRET || 'development')
.option('-p, --port <n>', 'Port to start the server on', process.env.PORT || 3000)
.option('-c, --cert <file>', 'Path to certificate of the GitHub Integration', readCert, process.env.CERT)
.option('-c, --cert <file>', 'Path to certificate of the GitHub Integration', readCert, process.env.CERT || process.env.PRIVATE_KEY)
.parse(process.argv);
function readCert(path) {