mybuddy/bin/ci-pre-deploy

7 lines
234 B
Plaintext
Raw Normal View History

2022-10-30 02:19:04 +00:00
#!/bin/sh -l
if [ "$IS_REVIEW_APP" = "true" ]; then
DOMAIN="$APP_NAME.dokku.baby-buddy.net"
ssh "$SSH_REMOTE" -- config:set "$APP_NAME" "ALLOWED_HOSTS=$DOMAIN CSRF_TRUSTED_ORIGINS=http://$DOMAIN"
echo "Review app configured"
2022-10-30 02:19:04 +00:00
fi