Skip to content

Commit

Permalink
chore: for some reason the url seems to have changed to not have prev…
Browse files Browse the repository at this point in the history
…iew in the url, which was a bug anyway
  • Loading branch information
signorecello committed Apr 19, 2024
1 parent aef2843 commit 25b2a10
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .devcontainer/scripts/onCreateCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .devcontainer/scripts/postAttachCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &)

Expand Down
3 changes: 1 addition & 2 deletions .devcontainer/token/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@
"target": "/root/workspace/.devcontainer/scripts",
"type": "bind"
}
],
"forwardPorts": [8080]
]
}

0 comments on commit 25b2a10

Please sign in to comment.