search for: railshandler

Displaying 17 results from an estimated 17 matches for "railshandler".

2007 Jun 05
4
uninitialized constant RailsHandler::Dispatcher
Hello, I am running in to an error trying to run mongrel. The server starts but then trying to access any url in my application throws this error: calling Dispatcher.dispatch uninitialized constant RailsHandler::Dispatcher ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:477:in `const_missing'' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.3/bin/mongrel_rails:75:in `process'' ... see full trace at: http://pastie.caboo.se/68007 If I force webrick the app work...
2006 Oct 31
12
Moving page_cache_directory
Howdy. I''m working on a RoR CMS and need cached pages to all be in public/cache rather than public [in order to set svn:ignore on all the files properly]. I can get page_cache_directory set correctly and the pages are cached in the right place but Mongrel isn''t serving them because it''s only looking for them in public. During development I know I can set -r public/cache
2006 Jun 11
1
StatusHandler
Zed, Very cool, finally got around to playing with StatusHandler and StatisticsHandler. One thing that was missing that I wanted was insight into _what_ the RailsHandler was working on, and what was queued up while it sat in single-threaded mode -- ie., the current list of requests. W/ the attached mongrel.conf, I hacked the RailsHandler to keep a hash of active requests, and spit that out in the StatusHandler. Any thoughts or feedback on this (attached)? than...
2006 Mar 18
4
Mongrel Console 0.1 -- script/console meets mongrel
...Server stopped. Exiting. Shutdown waiting for 20 requests Mongrel running in development mode on 0.0.0.0:3000. => nil irb(main):006:0> status Mongrel running with: * mime: * docroot: public * server: #<Mongrel::HttpServer:0x253441c> * tracing: true * rails: #<RailsHandler:0x25344d0> * host: 0.0.0.0 * port: 3000 => nil irb(main):007:0> stop Server stopped. Exiting. Shutdown waiting for 20 requests => nil irb(main):008:0> status Mongrel not running. => nil irb(main):009:0> start :port => 4000 Mongrel running in development mode...
2006 May 30
2
x-sendfile
I wrote an x-sendfile thing for the railshandler to get mongrel to catch the response header and stream out files from an application I''m writing but I''m pretty sure that zed said he''d built in x-sendfile somewhere already. I couldn''t find it, could someone lead me to it? Does mongrel work with SSL? If not...
2006 Jul 28
0
URL root/serving more than one app per subdomain
...lesheets and other "assets". That is, the app runs fine, but looks awful and has no javascript. Yesterday as I was setting this up, I managed to get it to work by hacking Mongrel itself. i added a "-u" (--urlroot) flag to mongrel_rails, added a @urlroot variable to the RailsHandler, and added the following lines to change the request path: In rails.rb/RailsHandler#process path_info = path_info[@urlroot.length, path_info.length- @urlroot.length] unless @urlroot.nil? or path_info[0, at urlroot.length]! =@urlroot and in handlers.rb / DirHandler#process path_info = reques...
2007 Mar 12
17
need help writing a plugin
Hi, I''m halfway developing a tiny plugin that allows people to scrub flash video files. I''ve got my plugin setup to monitor a directory /movies. Whenever a .flv file is requested within that directory, some stuff should happen, if not, the request should be processed as usual. I don''t know how to do the latter.. require ''mongrel'' require
2006 Jun 20
1
Performance tweak when local files are not served by mongrel
Hello Zed ! I''ve experimented a simple but limited performance tweak in the mongrel rails loader. With the following apache 2.2 mod proxy loadbalancer setup : # Redirect all non-static requests to cluster RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] We can assume that mongrel is called only when the
2006 May 23
8
Can Win32 service more than one rails request at a time?
Hi, I am trying to run Mongrel on win32 to serve an internal rails application. We are accessing legacy data, and some transactions can take 5 to 10 seconds. This is holding up every other request. The -n does not seem to be supported on Win32. Am I missing something, or should I look elsewhere to serve my Rails app on win32? Thanks, Walt -- No virus found in this outgoing message.
2006 Oct 05
1
+ camping and mongrel issues
I''ve been having some trouble with certain apps under Camping with Mongrel, particularly when lots of static files get served. So, I''ve borrowed some ideas from the RailsHandler and tightened up the Mongrel::Camping classes which come with Mongrel. If you''re having any troubles or want to test it out, update from Mongrel SVN and then `rake install`. It should produce a 0.3.13.5 gem. _why
2007 Dec 10
4
Mongrel and http 1.1 OPTIONS keyword
Hello. I just seen some errors in my mongrel application log: It seems related to the httpd OPTIONS keyword Example: Processing LoginController#login (for .30.5.208 at 2007-12-10 09:00:23) [OPTIONS] and our ruby application does not know what to do with it. and finally send an error Does mongrel (which is the http server) is supposed to deal with these kind of request ? I think these
2006 Jun 05
3
Mongrel Pre-Release 0.3.13 -- Katana Suicide Concurrency
...ails, Camping and Nitro. You can check it out at: http://mongrel.rubyforge.org/ GETTING IT Best thing to do is this: $ gem install daemons $ gem install mongrel --source=http://mongrel.rubyforge.org/releases/ WHAT''S FIXED * Fixes a failure of -P to find PID files. * Changes the RailsHandler so that only passes GET or HEAD requests to the DirHandler for page caching. * Confirms that the new send_file and upload to tempfile works on win32. More tests with big files uploaded on win32 are needed. * Lots of documentation on installing, with more to come. Full Apache documentation and info...
2006 Sep 13
7
Mongrel spewing backtraces and nanosleeping
Hi list, I''m seeing a couple of issues with Mongrel. I''m running FreeBSD 6.1 and have previously been told that there are known conflicts between this and Mongrel, yet I hope these issues will be resolved with time. I''m overloading Mongrel with httperf on my local workstation. Mongrel is started directly with the mongrel_rails command and there is only one mongrel
2006 May 11
6
Howtos: Deploying Rails on Windows servers
After a lot of work (and much promising) I have written instructions on various methods to deploy Rails applications in a Windows environment. For those of you who are not stuck with Windows, this won''t matter too much to you, but I think this is really useful for those in Windows shops. Topics covered: * Serving Multiple Rails Applications on Windows with Apache and Mongrel * Integrate
2006 Dec 05
7
mongrel and long lived connections
Hi, I found this article http://cyll.org/blog/tech/2006-08-09-themongrelcomet.html on mongrel and COMET very interesting. I ran the code, and it worked just as Christopher explained. The one thing I don''t understand is why mongrel can only handle 1 connection at a time. I thought that mongrel used a thread per connection. It appears that each registered handler can only handle 1
2006 Nov 04
19
Mongrel 0.3.13.4 Pre-Release -- Ruby''s LEAK Fixed (Death To Mutex!)
Howdy Folks, This release is after painstaking analysis of a memory leak that was reported by Bradley Taylor, reduced by myself, and then fixed after much work. You should all thank Bradley for finding the bizarre fix. It turns out the Ruby has a memory leak when you use pretty much any thread locking primitive other than Sync (Mutex, Monitor, etc.): http://pastie.caboo.se/10194 The fix (for
2006 Nov 28
34
Uploading Large (100mb+) files
I have an Apache 2.2.3 (mod_proxy_balancer) frontend server that does not have mongrel installed. It does proxy requests to several other mongrel-only servers (each running 2 mongrel processes). Each mongrel node has the same rails code-base and it''s working perfectly. However, my question is when I add an upload file form... where is it going to physically put that file? I mean since