coinmanager/update
2020-06-17 06:10:46 +02:00

17 lines
435 B
Bash
Executable File

#!/bin/bash
set -e
echo "cloning ..."
git pull -q origin master >/dev/null
echo "collecting static files ..."
cd /home/willipink/coinmanager/coinmanager
pipenv run python manage.py collectstatic --settings coinmanager.production_settings --no-input >/dev/null
echo "owning everything ..."
sudo chown -R willipink:www-data /home/willipink/coinmanager >/dev/null
echo "reloading apache ..."
sudo systemctl reload apache2 >/dev/null