-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
Β·42 lines (39 loc) Β· 1.24 KB
/
Copy pathstart.sh
File metadata and controls
executable file
Β·42 lines (39 loc) Β· 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
# ProView Cadence Launch Script
# This script starts a local web server for development
echo "π ProView Cadence - Launching Website..."
echo ""
# Check if Python 3 is available
if command -v python3 &> /dev/null
then
echo "β
Python 3 detected"
echo "π Starting server on http://localhost:8080"
echo "π Press Ctrl+C to stop the server"
echo ""
python3 -m http.server 8080
# Check if Python 2 is available
elif command -v python &> /dev/null
then
echo "β
Python 2 detected"
echo "π Starting server on http://localhost:8080"
echo "π Press Ctrl+C to stop the server"
echo ""
python -m SimpleHTTPServer 8080
# Check if Node.js is available
elif command -v npx &> /dev/null
then
echo "β
Node.js detected"
echo "π Starting server on http://localhost:8080"
echo "π Press Ctrl+C to stop the server"
echo ""
npx live-server --port=8080
else
echo "β No suitable server found!"
echo ""
echo "Please install one of the following:"
echo " - Python 3: https://www.python.org/downloads/"
echo " - Python 2: https://www.python.org/downloads/"
echo " - Node.js: https://nodejs.org/"
echo ""
echo "Or open index.html directly in your web browser"
fi