Remove misleading deploy.sh

This commit is contained in:
redfast00 2023-01-09 17:28:57 +01:00
parent 6e33f453bf
commit d55ef41340
No known key found for this signature in database
GPG Key ID: 5946E0E34FD0553C
1 changed files with 0 additions and 26 deletions

View File

@ -1,26 +0,0 @@
#!/bin/bash
set -eo pipefail
if (git status --porcelain=2 -uno | grep '' ); then
echo "You have unstaged changes."
echo "This shouldn't happen in production."
echo "Plsfix. Dank."
exit 1
fi
echo "Pulling from remote."
git pull
if [[ config.py.example -nt config.py ]]; then
echo "Example config file is newer than the current config file. Plsfix."
exit 1
fi
echo "Updating dependencies."
~/env/bin/pip install -r requirements.txt
echo "Migrating database."
~/env/bin/flask db upgrade
echo "Restarting server using passenger."
passenger-config restart-app .