This commit is contained in:
commit
bf57130f98
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user