From 25b2a10486e59652202d8f14eba03b921948d526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Pedro=20Sousa?= Date: Thu, 18 Apr 2024 16:50:53 +0100 Subject: [PATCH] chore: for some reason the url seems to have changed to not have preview in the url, which was a bug anyway --- .devcontainer/scripts/onCreateCommand.sh | 4 +--- .devcontainer/scripts/postAttachCommand.sh | 4 +++- .devcontainer/token/devcontainer.json | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.devcontainer/scripts/onCreateCommand.sh b/.devcontainer/scripts/onCreateCommand.sh index 0208ef556408..392909262fa8 100755 --- a/.devcontainer/scripts/onCreateCommand.sh +++ b/.devcontainer/scripts/onCreateCommand.sh @@ -3,13 +3,11 @@ TYPE=$1 NAME=$2 -apt install gh - curl -s install.aztec.network | NON_INTERACTIVE=1 BIN_PATH=/usr/local/bin bash -s docker compose -f $HOME/.aztec/docker-compose.yml pull if ! grep -q "PXE_URL" ~/.bashrc; then - echo "export PXE_URL=https://\$CODESPACE_NAME-8080.preview.\$GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN" >> ~/.bashrc + echo "export PXE_URL=https://\$CODESPACE_NAME-8080.\$GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN" >> ~/.bashrc fi yes | npx create-aztec-app -t $TYPE -n $NAME -s diff --git a/.devcontainer/scripts/postAttachCommand.sh b/.devcontainer/scripts/postAttachCommand.sh index e2ccda17ac51..07f72978c5f2 100755 --- a/.devcontainer/scripts/postAttachCommand.sh +++ b/.devcontainer/scripts/postAttachCommand.sh @@ -2,7 +2,9 @@ TYPE=$1 NAME=$2 -gh codespace ports visibility 8080:public -c $CODESPACE_NAME +apt install gh + +echo "gh codespace ports visibility 8080:public -c $CODESPACE_NAME" >> ~/.bashrc (nohup /usr/local/bin/aztec sandbox &) diff --git a/.devcontainer/token/devcontainer.json b/.devcontainer/token/devcontainer.json index ebb1cef6f527..0cee7d519ee7 100644 --- a/.devcontainer/token/devcontainer.json +++ b/.devcontainer/token/devcontainer.json @@ -25,6 +25,5 @@ "target": "/root/workspace/.devcontainer/scripts", "type": "bind" } - ], - "forwardPorts": [8080] + ] }