Skip to content

Commit 25fc3fc

Browse files
authored
Merge pull request #354 from Dstack-TEE/vmm-deploy
Update gatewa/deploy-to-vmm.sh
2 parents df927ac + cd24ed5 commit 25fc3fc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

gateway/dstack-app/deploy-to-vmm.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ PUBLIC_IP=$(curl -s4 ifconfig.me)
6060
# GATEWAY_APP_ID=31884c4b7775affe4c99735f6c2aff7d7bc6cfcd
6161
6262
# Whether to use ACME staging (yes/no)
63-
ACME_STAGING=yes
63+
ACME_STAGING=no
6464
6565
# Subnet index. 0~15
6666
SUBNET_INDEX=0
@@ -178,7 +178,7 @@ EOF
178178
--no-instance-id \
179179
--secure-time \
180180
--prelaunch-script .prelaunch.sh \
181-
--output .app-compose.json
181+
--output .app-compose.json > /dev/null
182182
fi
183183

184184
# Set launch_token_hash in app-compose.json
@@ -188,6 +188,9 @@ jq \
188188
'.launch_token_hash = $token_hash' \
189189
.app-compose.json.tmp > .app-compose.json
190190

191+
COMPOSE_HASH=$(sha256sum .app-compose.json | cut -d' ' -f1)
192+
echo "Compose hash: 0x$COMPOSE_HASH"
193+
191194
# Remove the temporary file as it is no longer needed
192195
rm "$COMPOSE_TMP"
193196

0 commit comments

Comments
 (0)