1
0
Fork 0
mirror of https://github.com/Findus23/PaperLibrary.git synced 2024-09-08 03:13:48 +02:00
PaperLibrary/deploy.sh

16 lines
287 B
Bash
Executable file

#!/bin/bash
set -x
set -e
python="/srv/venv/paperlibrary/bin/python"
manage="sudo -u paperlibrary $python manage.py"
git pull
#$manage scss
$manage collectstatic --noinput
$manage migrate
sudo systemctl reload paperlibrary.service
sudo systemctl restart paperlibrary-worker.service