-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|