Skip to content

Commit 8f170d7

Browse files
committed
feat: update phala cloud default prelaunch script with DSTACK_APP_DOMAIN
1 parent a4479c5 commit 8f170d7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

phala-cloud-prelaunch-script/prelaunch.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
echo "----------------------------------------------"
3-
echo "Running Phala Cloud Pre-Launch Script v0.0.6"
3+
echo "Running Phala Cloud Pre-Launch Script v0.0.7"
44
echo "----------------------------------------------"
55
set -e
66

@@ -151,6 +151,9 @@ fi
151151
if [[ $(jq 'has("default_gateway_domain")' app-compose.json) == "true" && -z "$DSTACK_GATEWAY_DOMAIN" ]]; then
152152
export DSTACK_GATEWAY_DOMAIN=$(jq -j '.default_gateway_domain' app-compose.json)
153153
fi
154+
if [[ -n "$DSTACK_GATEWAY_DOMAIN" ]]; then
155+
export DSTACK_APP_DOMAIN=$DSTACK_APP_ID"."$DSTACK_GATEWAY_DOMAIN
156+
fi
154157

155158
echo "----------------------------------------------"
156159
echo "Script execution completed"

0 commit comments

Comments
 (0)