Compare commits

..

No commits in common. "dda3328667d15dfcf22d1630899c4fab8f2ae516" and "f0d5af522001ce0abdece4e93a9320608b2f1608" have entirely different histories.

View File

@ -1,4 +1,4 @@
name: OTA TV
name: Personal Website - Run Python HTTP Server
on:
push:
@ -17,20 +17,9 @@ jobs:
git checkout main
git pull origin main
- name: Install dependencies
run: |
cd ~/ota-tv-web
if [ -f package-lock.json ] || [ -f package.json ]; then
echo "Installing npm dependencies..."
npm install
else
echo "No Node.js project found (missing package.json)"
exit 1
fi
- name: Stop existing screen session, if running
run: |
if screen -list | grep -q "ota_tv_web"; then
if screen -list | grep -q "ota_tv_web_server"; then
echo "Stopping existing screen session..."
screen -S ota_tv_web -X quit
fi
@ -38,5 +27,7 @@ jobs:
- name: Start server in screen session
run: |
cd ~/ota-tv-web
chmod +x ./start.sh
sassc css/style.scss css/style.css
setsid screen -dmS ota_tv_web bash -c 'HTTP_PORT=8081 WS_PORT=3001 npm start > server.log 2>&1'
echo "Server started in detached screen session"