forked from yaso_meth/mih-project
app files restructure
This commit is contained in:
18
Frontend/server/server.sh
Normal file
18
Frontend/server/server.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Define the port
|
||||
PORT=83
|
||||
|
||||
# Check if the port is in use and release it if necessary.
|
||||
# echo "Checking if port $PORT is in use..."
|
||||
# if [ "$(lsof -t -i :$PORT)" ]; then
|
||||
# echo "Port $PORT is in use. Stopping the process on that port..."
|
||||
# fuser -k -n tcp $PORT
|
||||
# fi
|
||||
|
||||
# Switch to the web construction directory
|
||||
cd /app/build/web/
|
||||
|
||||
# Start the web server on the specified port
|
||||
#python3 -m http.server 83
|
||||
python3 -u ../../server/MIH_web_server.py
|
||||
Reference in New Issue
Block a user