fix deploy
All checks were successful
PDX Pecularities Server / deploy (push) Successful in 1s

This commit is contained in:
david 2025-04-13 17:46:19 -07:00
parent cae9cc2904
commit cebb5be942
2 changed files with 5 additions and 6 deletions

View File

@ -7,12 +7,12 @@ on:
jobs: jobs:
deploy: deploy:
runs-on: self-hosted runs-on: pihq
steps: steps:
- name: Checkout code - name: Checkout code
run: | run: |
cd ~/pdx-peculiarties cd ~/apps/pdx-peculiarties
git fetch git fetch
git checkout main git checkout main
git pull origin main git pull origin main
@ -26,6 +26,6 @@ jobs:
- name: Start server in screen session - name: Start server in screen session
run: | run: |
cd ~/pdx-peculiarties cd ~/apps/pdx-peculiarties
setsid screen -dmS pdx_peculiarties bash -c 'python3 -m http.server 8083 > server.log 2>&1' setsid screen -dmS pdx_peculiarties bash -c 'python3 -m http.server 8083 > server.log 2>&1'
echo "Server started in detached screen session" echo "Server started in detached screen session"

View File

@ -9,9 +9,8 @@ const loadSection = (sectionName) => {
.catch(error => console.error('Error loading JSON:', error)); .catch(error => console.error('Error loading JSON:', error));
} }
function cap(str) { const cap = (str) =>
return str.charAt(0).toUpperCase() + str.slice(1); str.charAt(0).toUpperCase() + str.slice(1);
}
// Recursive function to handle strings, arrays, and objects // Recursive function to handle strings, arrays, and objects
const renderItems = (items) => { const renderItems = (items) => {