Actually have A UI for the first time in 21 weeks #5

Merged
nspackman merged 8 commits from backend into main 2025-11-24 18:24:57 -08:00
Showing only changes of commit ba32d9d482 - Show all commits

View File

@@ -0,0 +1,40 @@
name: Deploy Express API
on:
push:
branches:
- main
jobs:
deploy:
runs-on: linux_amd64
steps:
# Checkout code
- uses: actions/checkout@v3
# Pull latest code
- name: Pull latest code
run: |
cd /var/www/myapp/Project
git reset --hard
git pull origin main
# Install dependencies
- name: Install dependencies
run: |
cd /var/www/myapp/Project
npm install
# Kill existing process (optional)
- name: Stop previous instance
run: |
pkill -f "node .*app.js" || true
pkill -f "node .*start.js" || true
# Start app in background
- name: Start app
run: |
cd /var/www/myapp/Project
nohup npm start > app.log 2>&1 &