restart_supervisor_on_update
Enable or disable automatic restart of supervisor processes when runningbench update.
Arguments
Either
on to enable or off to disableExamples
When to Use
Enable this when:- Running production benches
- You want automatic service restarts after updates
- Using supervisor for process management
- You want manual control over restarts
- Running maintenance windows
- Testing updates before restart
bench/commands/config.py:13
restart_systemd_on_update
Enable or disable automatic restart of systemd units when runningbench update.
Arguments
Either
on to enable or off to disableExamples
When to Use
Use this when:- Using systemd instead of supervisor
- Running on modern Linux distributions
- Want automatic service management
bench/commands/config.py:22
dns_multitenant
Enable or disable DNS-based multitenancy for the bench.Arguments
Either
on to enable or off to disableExamples
What is DNS Multitenancy?
When enabled, the bench will:- Route requests based on the domain name
- Allow multiple sites with different domains
- Automatically serve the correct site based on the Host header
Configuration
When DNS multitenancy is enabled:-
Create sites with domain names:
- Configure DNS: Point all domains to your server’s IP
-
Update nginx:
bench/commands/config.py:30
serve_default_site
Configure nginx to serve the default site on port 80.Arguments
Either
on to enable or off to disableExamples
Use Cases
- On: Serve a specific site when accessing the server by IP
- Off: Require domain-based routing for all sites
bench/commands/config.py:38
rebase_on_pull
Configure git to rebase instead of merge when pulling updates.Arguments
Either
on to enable or off to disableExamples
Git Behavior
- On: Uses
git pull --rebasefor cleaner history - Off: Uses
git pull(merge) - safer for production
bench/commands/config.py:46
http_timeout
Set the HTTP timeout for bench operations in seconds.Arguments
Timeout value in seconds
Examples
When to Adjust
Increase timeout when:- Working with slow connections
- Downloading large apps
- Operating in high-latency environments
- You want faster failure detection
- Working on fast local networks
bench/commands/config.py:52
Complete Production Setup Example
Configuration Summary
Supervisor Restart
Auto-restart supervisor on update
Systemd Restart
Auto-restart systemd units on update
DNS Multitenant
Enable domain-based site routing
Default Site
Serve default site on port 80
Rebase on Pull
Use rebase instead of merge
HTTP Timeout
Configure request timeouts