This commit is contained in:
root 2024-10-24 21:38:09 +02:00
parent cee5dbe0fb
commit 143fb3ff25

View File

@ -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