1
0
Fork 0
mirror of https://github.com/Findus23/RPGnotes.git synced 2024-09-19 15:43:45 +02:00
RPGnotes/deploy.sh
2023-05-28 12:52:21 +02:00

19 lines
337 B
Bash
Executable file

#!/bin/bash
set -x
set -e
python="/srv/venv/rpgnotes/bin/python"
manage="sudo -u rpgnotes $python manage.py"
git pull
$manage scss
sudo -u rpgnotes npm run build
$manage collectstatic --noinput
$manage migrate
$manage clearcache
$manage clearsessions
$manage thumbnail clear_delete_referenced
sudo systemctl reload rpgnotes.service