Add self hosted entrypoint file for easier debugging which will use the integrated django server to serve all files

This commit is contained in:
Mario Hüttel 2024-11-17 17:33:45 +01:00
parent 144a65ee05
commit a59fad4866

6
entrypoint_self_hosted.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
source /home/shimatta/kenkyusho/.venv/bin/activate
cd /home/shimatta/kenkyusho/shimatta_kenkyusho
python manage.py migrate --settings shimatta_kenkyusho.settings_production
python manage.py runserver 0.0.0.0:8000 --settings shimatta_kenkyusho.settings_production