Skip to content

Add margin to video container #14

Add margin to video container

Add margin to video container #14

name: Deploy to VPS
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install SSH key
uses: webfactory/ssh-agent@v0.5.3
with:
ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}
- name: Deploy to server
run: |
ssh -o StrictHostKeyChecking=no deploy@195.200.15.145 << 'EOF'
# Charger nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
# Utiliser la version de Node.js gérée par nvm
nvm use node
# Vérifier que pnpm et pm2 sont disponibles
which pnpm
which pm2
cd /var/www/porotein
git pull
cd /var/www/porotein/app
pnpm install
pnpm build
cd /var/www/porotein/api
pnpm install
pnpm build
pm2 start ecosystem.config.js --env production
# Vérification de l'état des processus PM2
pm2 status