Skip to content

Commit f01d8db

Browse files
committed
Opens a browser when showing site locally
1 parent 0bc0ffb commit f01d8db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/build_locally.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ echo "✅ Jekyll site built in ./_site"
2020

2121
read -p "Do you want to serve the site locally? (y/n): " answer
2222
if [[ "$answer" =~ ^[Yy]$ ]]; then
23+
open "http://localhost:4000" &
2324
docker run --rm -p 4000:4000 $IMAGE_NAME
2425
fi

0 commit comments

Comments
 (0)