Permalink
Browse files

Use Rack::Deflator to gzip assets.

`bundle exec rackup -p 3000 -E production`

Should this be a Rake task?
  • Loading branch information...
1 parent afea2b3 commit bde2522048b6c657badb30bd522b618cd01333bb @jedfoster committed Oct 14, 2012
Showing with 6 additions and 5 deletions.
  1. +3 −2 config.ru
  2. +3 −3 views/layout.erb
View
@@ -1,6 +1,7 @@
require './sassmeister'
-## There is no need to set directories here anymore;
-## Just run the application
+# Gzip responses
+use Rack::Deflater
+# Run the application
run Sinatra::Application
View
@@ -50,9 +50,9 @@
<% if settings.environment == :production %>
<script src="/javascripts/app.js"></script>
<% else %>
- <script src="/javascripts/jquery-1.8.2.js"></script>
- <script src="/javascripts/ace.js"></script>
- <script src="/javascripts/application.js"></script>
+ <script src="/javascripts/vendor/jquery-1.8.2.js"></script>
+ <script src="/javascripts/vendor/ACE-noconflict/ace.js"></script>
+ <script src="/javascripts/main.js"></script>
<% end %>
</body>
</html>

0 comments on commit bde2522

Please sign in to comment.