Enhance Restaurant model and admin interface with closed days functio… #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Producción | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout del repositorio | |
uses: actions/checkout@v2 | |
- name: Conectar al VPS y actualizar | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.VPS_HOST }} | |
username: ${{ secrets.VPS_USERNAME }} | |
password: ${{ secrets.VPS_PASSWORD }} | |
script: | | |
cd /var/www/kiki | |
git pull | |
source venv/bin/activate | |
pip install -r requirements.txt | |
python manage.py migrate | |
sudo systemctl restart kiki | |
sudo systemctl restart nginx |