Basically, only templates depend on env var.
You can implement all other logical methods of the application based on the current env:
if settings.production?
else
end
You can also do something similar if conditional configurations are needed:
configure :production, :development do
enable :logging
end
gcstr source
share