Skip to content

Instantly share code, notes, and snippets.

@gbelote
Created July 2, 2012 14:58
Show Gist options
  • Save gbelote/3033654 to your computer and use it in GitHub Desktop.
Save gbelote/3033654 to your computer and use it in GitHub Desktop.
diff --git a/config.ru b/config.ru
index 4e0416f..ce264ca 100644
--- a/config.ru
+++ b/config.ru
@@ -1,4 +1,5 @@
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
+use Rack::Deflater if ENV['enable_gzip'] == "true"
run Crowdly::Application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment