Skip to content

Commit 236d398

Browse files
committed
move codespace port to shared script
1 parent 9a6aef8 commit 236d398

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

local/etc/uceap.d/devcontainer_post_create.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ function devcontainer_post_create() {
2323
export HTTP_PROTOCOL
2424
build/templater.sh /usr/local/share/drush/example.drush.yml > drush/drush.yml
2525

26+
# set ports to be publicly accessible
27+
if [[ -n "$CODESPACE_NAME" ]]; then
28+
gh codespace ports visibility 8080:public -c $CODESPACE_NAME
29+
fi
30+
2631
# Run local devcontainer lifecycle scripts
2732
if [ -x .devcontainer/postCreate.sh ]; then
2833
.devcontainer/postCreate.sh

0 commit comments

Comments
 (0)