Skip to content

feat: login and register module #7

feat: login and register module

feat: login and register module #7

Workflow file for this run

on: push
name: deploy
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy NodeJS app
uses: appleboy/ssh-action@v0.1.2
with:
host: ${{secrets.SSH_HOST}} # Private or public key of the server
username: ${{ secrets.SSH_USERNAME }} # User of the server you want to ssh into
key: ${{ secrets.SSH_KEY }}
script: |
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
pm2 stop index
cd /var/www/cronowork-api
git reset --hard
git pull origin master
npm ci
npm run build
pm2 start index