Skip to content

Commit

Permalink
Update openLocal.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mngugi committed Oct 18, 2024
1 parent 30c13d7 commit 728c5cc
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions openLocal.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#!/bin/bash

#http://localhost:8000
# Start a simple HTTP server using Python in the background
python3 -m http.server 8000 &

#!/bin/bash
# Give the server a second to start
sleep 2

# Open the default web browser and navigate to http://localhost:8000
xdg-open http://localhost:8000 # For Linux

# Start a simple HTTP server using Python
python3 -m http.server 8000
# For macOS, use the following line instead:
# open http://localhost:8000

0 comments on commit 728c5cc

Please sign in to comment.