Skip to content

Feat/document deployment steps#215

Merged
AAdewunmi merged 2 commits into
mainfrom
feat/document-deployment-steps
Apr 21, 2026
Merged

Feat/document deployment steps#215
AAdewunmi merged 2 commits into
mainfrom
feat/document-deployment-steps

Conversation

@AAdewunmi

Copy link
Copy Markdown
Owner

Summary

Documents the production-like deployment path for ReturnHub with a concrete operator flow from environment setup to a healthy application behind Nginx.

Changes

  • add and expand docs/deployment.md
  • define the purpose and scope of the production-like deployment path
  • document the required production environment variables
  • align the documented env contract with the repo’s actual settings behavior
  • document the canonical Compose-based production stack using docker-compose.prod.yml
  • describe the stable service topology: db, web, and nginx
  • add an explicit operator sequence from build to healthy application
  • document verification steps for:
    • config.settings.production
    • /api/health/
    • landing page security headers

Behavior

  • gives operators a single documented path for production-like deployment
  • makes DJANGO_SETTINGS_MODULE=config.settings.production the explicit production switch
  • clarifies how production.env should be used with the Compose production stack
  • shows how to confirm the stack is healthy after startup

Why

  • reduces ambiguity around how production deployment is supposed to work
  • aligns deployment docs with the current production Compose stack, Gunicorn startup path, Nginx proxy layer, and env naming
  • makes the path from image build to healthy application explicit and repeatable
  • avoids relying on ad hoc shell exports or undocumented assumptions

Validation

  • reviewed the deployment guide against:
    • docker-compose.prod.yml
    • Dockerfile.prod
    • production.env.example
    • config/settings/production.py
    • the current Nginx reverse-proxy configuration

Result

  • the repo now has a concrete deployment guide for the canonical production-like stack
  • operators have a documented sequence to go from env setup and image build to a healthy app and verified headers

Notes

  • the documented env contract reflects the current code, which reads POSTGRES_* values directly rather than DATABASE_URL
  • the guide is aligned with the current Compose-based production path and reverse-proxy setup

@AAdewunmi AAdewunmi self-assigned this Apr 21, 2026
@AAdewunmi AAdewunmi added the sprint-7-docs-infra-nginx Document deployment steps label Apr 21, 2026
@AAdewunmi AAdewunmi linked an issue Apr 21, 2026 that may be closed by this pull request
@codecov

codecov Bot commented Apr 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@AAdewunmi AAdewunmi merged commit aa37e29 into main Apr 21, 2026
2 checks passed
@AAdewunmi AAdewunmi deleted the feat/document-deployment-steps branch April 21, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sprint-7-docs-infra-nginx Document deployment steps

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

Document deployment steps

1 participant