From 143fb3ff255b76c85d403e27056d35d0b3798cee Mon Sep 17 00:00:00 2001 From: root Date: Thu, 24 Oct 2024 21:38:09 +0200 Subject: [PATCH] initial --- conf_script.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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