feat: production deploy pipeline #15

Merged
codex_a merged 2 commits from feat/deploy-pipeline into main 2026-02-28 21:50:04 +00:00
2 changed files with 15 additions and 11 deletions
Showing only changes of commit 833ff378ea - Show all commits

14
deploy/entrypoint.prod.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
set -e
python manage.py tailwind install --no-input
python manage.py tailwind build
python manage.py migrate --noinput
python manage.py collectstatic --noinput
exec gunicorn config.wsgi:application \
--workers 3 \
--bind 0.0.0.0:8000 \
--access-logfile - \
--error-logfile - \
--capture-output

View File

@@ -2,17 +2,7 @@ services:
web: web:
build: app build: app
working_dir: /app working_dir: /app
command: > command: /app/deploy/entrypoint.prod.sh
sh -c "python manage.py tailwind install --no-input &&
python manage.py tailwind build &&
python manage.py migrate --noinput &&
python manage.py collectstatic --noinput &&
gunicorn config.wsgi:application
--workers 3
--bind 0.0.0.0:8000
--access-logfile -
--error-logfile -
--capture-output"
env_file: .env env_file: .env
environment: environment:
DJANGO_SETTINGS_MODULE: config.settings.production DJANGO_SETTINGS_MODULE: config.settings.production