similar to: Rack-Cache and Streaming... incompatible?

Displaying 20 results from an estimated 30000 matches similar to: "Rack-Cache and Streaming... incompatible?"

2011 Nov 05
3
How to get Rails 3.1's Cache store (FileStore) to work with Rack::Sendfile
Hey - I need your input regarding a problem I''ve come across. I''ll first explain what the problem is, and what I think the solution is. If I misunderstood how things work, please let me know. # The problem I''m using Dragonfly (on-the-fly file processing) to serve images. Dragonfly uses Rack::Cache to cache the processed images so subsequent requests are served by
2013 Jul 22
0
How to handle exception that is generated in rack middleware before it reach rails app?
I know that we can use config.exception_app to set up custom exception handling and also use rescue_from. However, I have an issue that there is malformed request (testing generated request) that caused Rails Rack middleware to throw an exception when Rack''s parse_query method. Here is the detail of the problem:
2012 Mar 29
2
Rails 3.2 and Streaming using response_body
I am working on a streaming download (CSV) from Rails 3.2 and am coming up against an issue of the initial page request taking a long time. The following controller code illustrates my issue: self.response_body = Enumerator.new do |y| 10_000_000.times do y << "Hello World" end end With the above, the response does seem like its streaming
2010 Feb 04
3
Rails / Rack version mismatch
I attempted to install rails, with these error messages: $ sudo gem install rails ERROR: Error installing rails: actionpack requires rack (~> 1.0.0, runtime) $ sudo gem install rack Successfully installed rack-1.1.0 1 gem installed $ sudo gem install rails ERROR: Error installing rails: actionpack requires rack (~> 1.0.0, runtime) Why does gem install a current version of rack which
2013 Aug 12
2
Passenger-Rack error 500: no such file to load -- rack
I have a puppetmaster running within passenger+rack. It has been running properly for almost a year and decided to stop working on the weekend. Now I''m getting the Purple "Ruby (Rack) application could not be started" screen with Error: no such file to load -- rack Application: /data1/rack/puppetmaster The backtrace is uninspiring. Snippets include:
2013 Apr 22
0
Using rack-offline with the asset pipeline (images not cached)
Hi, I''ve been trying to incorporate https://github.com/wycats/rack-offline into my app. I followed the example in the readme that shows how to cache application.css and application.js files and that works. When I go to my browser in production mode, though, and turn off my network connection, then reload the app, the app is reloaded successfully, except for the images. I think I
2009 Mar 29
5
Rack::Lint::LintError with latest camping and rack
I''m trying to use Camping from Magnus'' repo (1.9.300) but running the blog.rb example (or anything for that matter) gives me Rack::Lint::LintError at / Content-Length header was 0, but should be 548 Ruby C:/ruby-1.8.7/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/lint.rb: in assert, line 16 Web GET localhost/ There are no errors on the camping output so I suspect something has
2012 May 17
1
Update Rails on Rack documentation
The Rails on Rack documentation is still using the "ActionController::Dispatcher" class but it no longer exists, I can update the documentation, I just wanted to discuss what''s the best way to do it, I''ve tested with "run Rails.application" as well as with "run MyAppName::Application" (just like the generated config.ru file does it), what do you
2012 Oct 18
4
Rack env rack.multiprocess true with single worker
Hi, unicorn unconditionally sets rack.multiprocess to true in the Rack environment. The Rack spec [0] says the following about the variable: "true if an equivalent application object may be simultaneously invoked by another process, false otherwise." When unicorn is running with a single worker this does not hold so what do you think about setting the variable to false when only a
2012 Feb 08
0
do I mount rack apps in Rails (3.1) for faster APIs?
Hey, I''m not sure I fully appreciate the best use(s) for Rack apps (e.g., Sinatra apps) in a Rails (3.1) application... Scenario: I have in mind a bunch of RESTful controller actions linked to models -- all for providing an API. Approach 1: handle each resource from its own mounted Rack app: + ''Rails 3 in Action'' advises mounted rack apps for Rails APIs because they
2011 May 24
2
problem with rack versions and puppet-dashboard
I get this error can''t activate rack (~> 1.0.1), already activated rack-1.2.2 It appears that puppet-dashboard uses rack 1.0.1 but passenger 3.0.7 needs to use rack1.2.2 Is there a way around this or make dashboard use rack 1.2.2? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to
2010 Sep 03
1
Rack gem in not getting unpacked
Hi All, my server is having rack gems as: rack (1.2.1, 1.1.0, 1.0.1, 1.0.0) when i run the following command in my project/vendor/gems folder: gem unpack rack-1.0.0 It shows the following error message: Error: Gem ''rack-1.0.0'' not installed. Any idea on this?? Thanks, Saurabh -- Posted via http://www.ruby-forum.com/. -- You received this message because you are
2010 Nov 16
2
Passenger cannot load Rack
I am getting the following error in my Apache error log when trying to run my puppetmaster as a rack app with Passenger: *** Exception LoadError in PhusionPassenger::Rack::ApplicationSpawner (no such file to load -- rack) (process 32373): Apache will start up without error, but as soon as a puppet client connects, the error is thrown. Passenger is dying at a "require
2010 Jun 14
3
How do I upgrade rack in my current rails app?
Hi, I have a rails 2.3.8 app which has rack 1.1.0. I get parse_multipart error. There''s a new release of rack 1.2.0 which might fix the multipart error. The question is how I upgrade the rack? I froze the rails. I did "gem update rack" and it upgraded rack to 1.2.0. But my rails app still uses rack 1.1. How do I set the rails app use rack 1.2.0? Thanks. Sam -- Posted via
2004 Aug 06
1
icecast compatible rack encoder
hey does anybody know about a fairly inexpensive mp3 streaming/encoding box that supports icecast? rack-mount pro type stuff? we want to be able to mount the stream it generates on a mountpoint of an icecast server. -peter --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to
2011 May 16
3
Problem with GET args and UTF-8 encoding (output of Rack::Utils.unescape() ?)
Hi folks, Here''s my basic issue, hopefully this is clear. I''m trying to submit some UTF-8 values in my query string, but they are coming out mangled on the other end. It *seems* like the problem is that what Rack::Utils.unescape() pushes out gets converted to UTF-8 somewhere in the chain (using 3.0.7, and Ruby 1.9.2, by the way), and it''s mangling characters which are
2010 Mar 13
1
Testing file upload (Sinatra, RSpec, Rack-Test)
Hi. I have a simple application and I want to add a file upload functionality. How can I write a spec? Here''s my try. # directory structure app: - controller.rb - controller.spec.rb - files: [] - fixtures: [test_file.png] # controller.spec.rb require ''rack/test'' require ''controller'' module MyHelpers def app Sinatra::Application end end
2011 Jun 03
0
Rack Middleware support for Rails 2.0.2? If not what is the alternative to implement similar functionality in Rails 2.0.2..
Hello all, I am using Rails 2.0.2 and Ruby 1.8.7 and I need to make use of rack middleware for integrating an ajax file upload plugin(https:// github.com/valums/file-uploader) with paperclip in Rails( As given in this tutorial:- http://mooooooooooo.wordpress.com/2010/12/03/paperclip-valums%E2%80%99s-file-uploader-and-middleware-continued/). I have referred to the rack-middleware Railscast by
2011 Mar 31
3
OT: IBM and Dell rack
Hi all, sorry for the OT. Is IBM and Dell 42U rack compatible in dimension, rails, etc? Can we put IBM servers into Dell rack? Google says it depends. Much appreciated if you can share your experience. http://www.server-racks.com/why-all-racks-are-not-created-equal.html Thank you.
2009 May 28
0
Cross-Domain Data with Rack and Rails -- http://bit.ly/BNw6T
A big theme from RailsConf a few weeks ago was the arrival of Rack in Rails as of version 2.3. The first topic that seemed to pique developer interest was Rails Metal -- especially the speed bump of using a lighter stack for high volume URIs. While this is a useful upgrade to Rails, the architectural shift provided by Rack brings new flexibility. Read more about the value of mounting Rack