Command Categories
Environment Setup
bench setup env
Set up Python virtual environment for the bench
bench setup redis
Generate Redis configuration files for cache and queue
Production Deployment
bench setup production
Complete production setup with NGINX and Supervisor/systemd
bench setup nginx
Generate NGINX web server configuration
bench setup supervisor
Generate Supervisor process manager configuration
Security & SSL
bench setup lets-encrypt
Set up free SSL certificates with Let’s Encrypt
Maintenance
bench setup backups
Configure automatic backup cronjobs
Development vs Production
Development Setup
For local development, you typically only need:bench start which uses the Procfile.
Production Setup
For production deployments, use the comprehensive setup command:- NGINX as a web server
- Supervisor or systemd for process management
- Proper file permissions
- Service symlinks and reloads
Quick Reference
| Command | Purpose | Requires Sudo |
|---|---|---|
bench setup env | Create Python virtual environment | No |
bench setup redis | Generate Redis configuration | No |
bench setup nginx | Generate NGINX configuration | No |
bench setup supervisor | Generate Supervisor configuration | No |
bench setup production | Complete production setup | Yes |
bench setup lets-encrypt | Set up SSL certificates | Yes |
bench setup backups | Schedule automatic backups | No |
Common Workflows
Next Steps
- Explore individual setup commands for detailed options
- Learn about bench config to customize your setup
- See production setup guide for comprehensive deployment instructions