Compare commits

..

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

View File

@ -7,19 +7,19 @@ on:
jobs: jobs:
deploy: deploy:
runs-on: pirf runs-on: self-hosted
steps: steps:
- name: Checkout code - name: Checkout code
run: | run: |
cd ~/apps/ota-tv-web cd ~/ota-tv-web
git fetch git fetch
git checkout main git checkout main
git pull origin main git pull origin main
- name: Install dependencies - name: Install dependencies
run: | run: |
cd ~/apps/ota-tv-web cd ~/ota-tv-web
if [ -f package-lock.json ] || [ -f package.json ]; then if [ -f package-lock.json ] || [ -f package.json ]; then
echo "Installing npm dependencies..." echo "Installing npm dependencies..."
npm install npm install
@ -37,6 +37,6 @@ jobs:
- name: Start server in screen session - name: Start server in screen session
run: | 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' 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" echo "Server started in detached screen session"