to laptptop
This commit is contained in:
17
server/server.sh
Normal file
17
server/server.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
sh
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
# Set the port
|
||||
PORT=5000
|
||||
|
||||
# Stop any program currently running on the set port
|
||||
echo 'preparing port' $PORT '...'
|
||||
fuser -k 5000/tcp
|
||||
|
||||
# switch directories
|
||||
cd build/web/
|
||||
|
||||
# Start the server
|
||||
echo 'Server starting on port' $PORT '...'
|
||||
python3 -m http.server $PORT
|
||||
Reference in New Issue
Block a user