chore: PRWLR-4055 Update project structure and add env vars (#12)

* chore: PRWLR-4055 update project structure and add env vars

* chore: PRWLR-4055 make production settings default

* chore: PRWLR-4055 change default values to env variables

* chore: PRWLR-4055 apply requested changes on default values

* chore: PRWLR-4055 adapt testing environment
This commit is contained in:
Víctor Fernández Poyatos authored and GitHub committed 2024-07-16 09:33:56 -04:00
1 parent 9df759da60
commit 8f41b38bbf
21 files changed
+162 -94

No files matched your search

+3 -2
View File
@@ -1,5 +1,6 @@
#!/bin/sh
apply_migrations() {
echo "Applying database migrations..."
poetry run python manage.py migrate
@@ -7,12 +8,12 @@ apply_migrations() {
start_dev_server() {
echo "Starting the development server..."
poetry run python manage.py runserver 0.0.0.0:8000
poetry run python manage.py runserver 0.0.0.0:"${DJANGO_PORT:-8080}"
}
start_prod_server() {
echo "Starting the Gunicorn server..."
poetry run gunicorn -c backend/guniconf.py backend.wsgi:application
poetry run gunicorn -c config/guniconf.py config.wsgi:application
}
case "$1" in