From fa9f081b77881aac89cceb5571ca950ff02f3932 Mon Sep 17 00:00:00 2001 From: david Date: Sun, 13 Apr 2025 17:47:48 -0700 Subject: [PATCH] update deploy --- .gitea/workflows/deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index b16f439..a4fe4eb 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -7,19 +7,19 @@ on: jobs: deploy: - runs-on: self-hosted + runs-on: pirf steps: - name: Checkout code run: | - cd ~/ota-tv-web + cd ~/apps/ota-tv-web git fetch git checkout main git pull origin main - name: Install dependencies run: | - cd ~/ota-tv-web + cd ~/apps/ota-tv-web if [ -f package-lock.json ] || [ -f package.json ]; then echo "Installing npm dependencies..." npm install @@ -37,6 +37,6 @@ jobs: - name: Start server in screen session run: | - cd ~/ota-tv-web + cd ~/apps/ota-tv-web 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"