Make Commands
Makefile Commands Reference
This project uses an environment-based Makefile to manage Docker, Django, background workers, Redis, and Nginx with simple commands.
The same commands work for both development and production, and automatically switch behavior based on the environment.
Before running any command, make sure your environment is set in .env:
MAKEFILE_ENV=dev # for local development
# or
MAKEFILE_ENV=prod # for production server
All commands should be executed from the project root directory:
cd digistore
Some commands are intentionally disabled in production to prevent accidental data loss (for example: make down-v, make makemigrations, Redis CLI, etc.).
Docker Base Commands
| Command |
Description |
make up |
Start all containers in background |
make rebuild |
Rebuild images (no cache) and start containers |
make ps |
Show running containers |
make ps-all |
Show all containers (including stopped) |
make start |
Start stopped containers |
make stop |
Stop running containers |
make exec |
Open bash shell inside Django app container |
make down |
Stop and remove containers & networks |
make down-v |
Stop and remove containers, networks & volumes (dev only) |
Django Management Commands
| Command |
Description |
make shell |
Open Django interactive shell |
make makemigrations |
Create new migrations (dev only) |
make migrate |
Apply database migrations |
make superuser |
Create Django admin user |
make collectstatic |
Collect static files |
Logs & Monitoring
| Command |
Description |
make logs |
Show live logs of Django app container |
make django-logs |
Alias of make logs |
make celery-logs |
Show Celery worker logs |
make celery-beat-logs |
Show Celery beat scheduler logs |
Redis Commands (Development Only)
| Command |
Description |
make redis-cli |
Open Redis CLI inside Redis container |
Nginx (Production Only)
| Command |
Description |
make nginx-logs |
View live Nginx access & error logs |
make nginx-reload |
Reload Nginx configuration (no downtime) |
make nginx-restart |
Restart Nginx container |
Production Deployment Command
Available only when MAKEFILE_ENV=prod
| Command |
Description |
make deploy |
Safe deploy: git pull → rebuild → optional migrate → optional collectstatic → reload nginx |