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"