Skip to content

Merge pull request #79 from josephlee222/locations #120

Merge pull request #79 from josephlee222/locations

Merge pull request #79 from josephlee222/locations #120

Workflow file for this run

name: Deployment
on:
push:
branches:
- main
jobs:
build:
name: Deploy Backend
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
cd projects/TProject
git pull
cd server
sudo forever stopall
npm i
sudo forever start index.js