initial
This commit is contained in:
parent
cee5dbe0fb
commit
143fb3ff25
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user