1
0
mirror of synced 2025-12-21 02:46:50 -05:00

Make the HEROKU_PRODUCTION_APP_NAME env var required for prod deployment (#21910)

This commit is contained in:
James M. Greene
2021-10-06 11:53:28 -05:00
committed by GitHub
parent 47f3eb42ec
commit 8771695531
2 changed files with 5 additions and 14 deletions

View File

@@ -158,11 +158,9 @@ async function deployProduction() {
const { HEROKU_PRODUCTION_APP_NAME, DOCUBOT_REPO_PAT, FASTLY_TOKEN, FASTLY_SERVICE_ID } =
process.env
// Warn if Heroku App name is not found
// Exit if Heroku App name is not found
if (!HEROKU_PRODUCTION_APP_NAME) {
console.warn(
'⚠️ You did not supply a HEROKU_PRODUCTION_APP_NAME environment variable.\nWithout it, this deployment will not end up in our production environment!'
)
throw new Error('You must supply a HEROKU_PRODUCTION_APP_NAME environment variable!')
}
// Warn if @docubot PAT is not found