Configure Production
Environment Configuration
module MyApp
include Azu
configure do
port = ENV.fetch("PORT", "8080").to_i
host = ENV.fetch("HOST", "0.0.0.0")
case ENV.fetch("AZU_ENV", "development")
when "production"
log.level = Log::Severity::Info
template_hot_reload = false
when "test"
log.level = Log::Severity::Warn
else
log.level = Log::Severity::Debug
template_hot_reload = true
end
end
endEnvironment Variables
Build for Production
SSL Configuration
Security Headers
Logging Configuration
Health Check Endpoint
Graceful Shutdown
Connection Pooling
Rate Limiting
Production Checklist
See Also
Last updated
Was this helpful?
