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

19 lines
320 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
npm run build
$manage collectstatic --noinput
$manage migrate
$manage clearcache
$manage clearsessions
$manage thumbnail clear_delete_referenced
sudo systemctl reload rpgnotes.service