inicia o projeto com traefik e uvicorn

This commit is contained in:
2025-06-18 10:13:22 -04:00
commit 1e018e7b07
104 changed files with 4233 additions and 0 deletions

View File

@ -0,0 +1,16 @@
#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
# Garanta que os diretórios existam
mkdir -p /app/staticfiles
mkdir -p /app/media
python /app/manage.py collectstatic --noinput --clear
python /app/manage.py compress --force
python /app/manage.py migrate
exec uvicorn config.asgi:application --host 0.0.0.0 --port 8000 --reload
# exec python manage.py runserver 0.0.0.0:8000