Update run.sh

This commit is contained in:
Alexandre
2022-07-10 08:54:27 +02:00
committed by GitHub
parent a5dfc9a5e2
commit 7e8e60f83e

View File

@@ -11,15 +11,16 @@ chmod -R 777 "$LOCATION"
echo "Launch app"
su -l wger -c "\
export WORKDIR="/home/wger/src" && \
cd /home/wger/src && \
echo "Defining database" && \
touch "$LOCATION"/database.sqlite && \
ln -s "$LOCATION"/database.sqlite /home/wger/db && \
echo "Updating database" && \
python3 manage.py migrate || true && \
python3 /home/wger/src/manage.py migrate || true && \
echo "Starting app" && \
DOCKER_DIR=./extras/docker/development && \
if [ -f ~/.bashrc ]; then source ~/.bashrc; fi && \
cd /home/wger/src && \
export FROM_EMAIL='wger Workout Manager <wger@example.com>' && \
export DJANGO_DB_DATABASE=/data/database.sqlite && \
export DEBIAN_FRONTEND=noninteractive && \