first commit

This commit is contained in:
vanalmsick 2025-09-27 18:19:06 +01:00
commit e7f627801f
152 changed files with 35352 additions and 0 deletions

20
scripts/launch_django.sh Normal file
View file

@ -0,0 +1,20 @@
#!/bin/bash
# Working dir is "src-backend"
export DJANGO_SETTINGS_MODULE="workout_challenge.settings"
echo "Run make migrations"
python manage.py makemigrations
echo "Run migrate"
python manage.py migrate
if [ $DEBUG == "true" ] || [ $DEBUG == "True" ]; then
echo "Run Django Server";
python ./manage.py runserver 0.0.0.0:8000;
else
echo "Run Gunicorn Server";
python manage.py collectstatic --noinput;
gunicorn -c ./gunicorn.conf.py;
fi