diff --git a/conf_script.sh b/conf_script.sh index cff1cc0..7728eea 100644 --- a/conf_script.sh +++ b/conf_script.sh @@ -1,12 +1,12 @@ #!/bin/bash -if [ -n "$HEROKU_APP_ID" ] && [ -n "$HEROKU_APP_NAME" ]; then - APP_URL="https://${HEROKU_APP_NAME}-${HEROKU_APP_ID}.herokuapp.com/" +if [ -n "$HEROKU_APP_DEFAULT_DOMAIN_NAME" ]; then + APP_URL="https://${HEROKU_APP_DEFAULT_DOMAIN_NAME}" else if [ -f /app/app_link.txt ]; then APP_URL=$(cat /app/app_link.txt) else - echo "Neither HEROKU_APP_NAME/ID nor /app/app_link.txt is available. Exiting." + echo "Neither HEROKU_APP_DEFAULT_DOMAIN_NAME nor /app/app_link.txt is available. Exiting." exit 1 fi fi