Commit Graph

15 Commits

Author SHA1 Message Date
aebae3b604 feat(cli): introduce hdg global CLI tool with self-install, self-update and shorthand syntax
- hdg: Global executable with auto-symlinking to /usr/local/bin, self-update, and auto-setup

- cli.py: Unified Python CLI with setup, repair, doctor, update, and install commands

- add-gunicorn-service.sh: Kept as backward-compatible wrapper redirecting to hdg
2026-09-14 13:55:14 +03:30
11608523c9 test: add comprehensive unit test suite for detector and service generator
- 14 unit tests for DjangoProjectDetector (modular, traditional, flat layouts, venv, .env)

- 11 unit tests for SystemdServiceGenerator (umask, workers, security, paths)
2026-09-14 13:54:35 +03:30
8a9269bb79 feat(core): implement modular OOP engine following SOLID and DRY principles
- models: DomainConfig, ServiceConfig, DiagnosticReport (single source of truth)

- interfaces: DIP & ISP contracts for detector, generator, executor, doctor, and migrator

- detector: Smart auto-detection for modular (config/wsgi.py), traditional, and flat layouts

- service_generator: Systemd service generation with --umask 007 and security sandboxing

- executor: Linux command execution with dry-run support

- nginx_manager: HestiaCP template installation and validation

- migrator: Automated migration and repair of existing deployments

- doctor: Comprehensive post-deployment health check engine
2026-09-14 13:54:05 +03:30
c64742cf8b refactor(nginx): relocate templates to templates/ and harden proxy configuration
- Unify unix socket path to %docroot%/gunicorn.sock

- Add ^~ priority modifier for /static/ and /media/ locations

- Add complete proxy headers including X-Forwarded-Proto for CSRF compatibility

- Clean up root directory by placing templates in dedicated templates/ folder
2026-09-14 13:53:31 +03:30
c35aa06b99 chore: add .gitignore, .gitattributes for LF enforcement, and remove temporary notes 2026-09-14 13:52:57 +03:30
MohammadAmin Baranzehi
c3c92845bc just for test 2026-02-09 16:01:03 +03:30
MohammadAmin Baranzehi
125ab8aee1 Revise HestiaCP + Django + Gunicorn deployment guide
Updated the README.md to enhance the deployment guide for HestiaCP and Django with Gunicorn, including formatting improvements and additional sections.
2026-02-09 14:38:09 +03:30
MohammadAmin Baranzehi
a125afe7f2 Refactor README for clarity and consistency
Removed redundant section and cleaned up formatting.
2026-02-09 14:36:22 +03:30
MohammadAmin Baranzehi
d9978bd25b Merge remote changes and add local project 2026-02-09 14:34:07 +03:30
MohammadAmin Baranzehi
9ede1576af Initial commit 2026-02-09 14:05:59 +03:30
MohammadAmin Baranzehi
36b6b7300f add persian note 2026-02-09 14:02:00 +03:30
MohammadAmin Baranzehi
5e13a9f8a7 add readme 2026-02-09 13:59:32 +03:30
MohammadAmin Baranzehi
f96cd69c8d add-gunicorn-service.sh 2026-02-08 14:30:38 +03:30
MohammadAmin Baranzehi
6c9fea441a https _SSL_ template (django-gunicorn.stpl) 2026-02-08 14:07:43 +03:30
MohammadAmin Baranzehi
8981431f86 http template (django-gunicorn.tpl) 2026-02-08 14:07:05 +03:30