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

18 lines
315 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 thumbnail clear_delete_referenced
sudo systemctl reload rpgnotes.service