Skip to content

Merge pull request #721 from inventaire-des-orgues/dates_facteurs #571

Merge pull request #721 from inventaire-des-orgues/dates_facteurs

Merge pull request #721 from inventaire-des-orgues/dates_facteurs #571

Workflow file for this run

name: remote ssh command
on:
push:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
script: |
cd /var/www/portail
source /var/www/pythonenv/bin/activate
git pull
pip3 install -r requirements.txt
python manage.py collectstatic --noinput
python manage.py migrate
sudo systemctl restart nginx
sudo systemctl restart gunicorn