Compare commits

..

No commits in common. "bf57130f98bb6e7cb4b4cfdb2d73e5bf7e09f500" and "e871d5c268cff5babfff5c9211e2fa52d1613c64" have entirely different histories.

View File

@ -7,19 +7,19 @@ on:
jobs:
deploy:
runs-on: pirf
runs-on: self-hosted
steps:
- name: Checkout code
run: |
cd ~/apps/ota-tv-web
cd ~/ota-tv-web
git fetch
git checkout main
git pull origin main
- name: Install dependencies
run: |
cd ~/apps/ota-tv-web
cd ~/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 ~/apps/ota-tv-web
cd ~/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"