generated from westfarn/web_django_template
Stand up Print Forge as a 3D-printed toy shop with color variants and printer photography.
Replaces the client_site template branding, adds shop/shipping, and points beta CI at master for easy deploy. Closes #1
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd /app
|
||||
if [[ "${DJANGO_ENV:-}" == "dev" || "${DJANGO_USE_RUNSERVER:-}" == "true" ]]; then
|
||||
echo "Syncing Python deps..."
|
||||
uv sync --frozen
|
||||
fi
|
||||
cd /app/site
|
||||
|
||||
wait_for_database() {
|
||||
@@ -14,7 +19,7 @@ wait_for_database() {
|
||||
import os
|
||||
import sys
|
||||
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "client_site.settings")
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "print_forge.settings")
|
||||
|
||||
import django
|
||||
from django.db import connections
|
||||
@@ -51,6 +56,6 @@ fi
|
||||
|
||||
uv run python manage.py collectstatic --noinput
|
||||
|
||||
exec uv run gunicorn client_site.wsgi:application \
|
||||
exec uv run gunicorn print_forge.wsgi:application \
|
||||
--bind "${GUNICORN_BIND:-0.0.0.0:8000}" \
|
||||
--workers "${GUNICORN_WORKERS:-2}"
|
||||
|
||||
Reference in New Issue
Block a user