search for: campinghandl

Displaying 9 results from an estimated 9 matches for "campinghandl".

Did you mean: campinghandler
2006 Dec 19
1
mongrel_config has no output
...s: - !ruby/object:Mongrel::DirHandler default_content_type: application/octet-stream index_html: index.html listener: *id001 listing_allowed: true path: /usr/local/lib/ruby/gems/1.8/gems/mongrel_config-0.3/resources /config: - !ruby/object:Mongrel::Camping::CampingHandler files: !ruby/object:Mongrel::DirHandler default_content_type: application/octet-stream index_html: index.html listing_allowed: false path: / guard: !ruby/object:Mutex {} klass: !ruby/object:Module {} listener: *id001 death_time: 60 host: 0...
2007 Mar 13
18
Daemonizing a camping server
...e in mongrel_rails as well as rv: settings = {:host => "0.0.0.0", :log_file => ''foo.log'', :cwd => $MYSERVER_HOME} config = Mongrel::Configurator.new settings do listener :port => 12345 do uri ''/foo'', :handler => Mongrel::Camping::CampingHandler.new(CASServer) setup_signals end daemonize :log_file => ''foo.log'', :cwd => $MYSERVER_HOME end config.run config.join The server works just fine if I comment out the "daemonize" call, but doesn''t work at all when daemonized. Any ideas? This...
2006 Apr 11
0
Large file support (up and down) for Mongrel 0.13.3
...ng CHUNK_SIZE. There''s a threshold in a constant called MAX_BODY. If a file is larger, it''ll get canned in a Tempfile. Currently, it''s set to the same size as MAX_HEADER. I''ve added to the test_response.rb appropriately. I''ve tested the DirHander and CampingHandler. I''m going to test out the Rails handler now. _why [1] http://celebnamer.celebworld.ws/stuff/mod_xsendfile/ [2] http://trac.lighttpd.net/trac/changeset/1097 [3] http://www.lighttpd.net/documentation/upload-progress.html
2007 Apr 23
1
X-Sendfile, static files, windows
i wrote a little camping app which serves the css, js and images statically using the Static class example i found on the camping wiki. everything works perfectly on my mac. once on windows the static files don''t get served. a 404 is returned. i have tried running the app using camping, webrick and mongrel, all give the same 404 response. here is an example value of X-Sendfile. I have
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
2007 Jun 19
1
Reloader paths/
after investigating why the reloader wasnt working , i discovered 2 probs, one of which was sorta my fault (but will likely happen to others who make one-file apps) first, my app was like this: #!/usr/bn/env ruby %w{applib1 applib2 digest/md80 airbus}.each{|r| require r}} if __FILE__ == $0 Mongrel.config do handler ''/'', Camping.reloader.new(__FILE__) end end not
2006 Mar 26
4
select information from sqlite_master error
Hi, I''m having fun playing around with Camping...I am slowly working on extending tepee to a personal e-notebook sort of tool (never lose my papers/revisions....hehe). I''ve given tepee an oswd css design, and am currently adding a admin page that I want to show the ruby version, sqlite version and db size and db stats information. I tried running: @db_stats =
2007 Mar 12
3
threading and concurrency
hello all. ive come to the point where im thinking about deploying my ''rails on rails'' app-development solution built in camping. mainly, im wondering what the barriers to thread-safety are. for db, i use redland, and afaik it spawns a single db connection for each find, and keeps a pool around to reuse. iow, no ActiveRecord. are class-vars a problem? theres one that
2006 May 11
7
Upload progress "plugin"
...ith it: require ''mongrel'' require ''mongrel/camping'' require ''mongrel/progress'' config = Mongrel::Configurator.new :host => host do listener :port => port do uri "/", :handler => Mongrel::Camping::CampingHandler.new(ParkPlace) uri "/progress", :handler => Mongrel::ProgressHandler.new uri "/favicon", :handler => Mongrel::Error404Handler.new("") trap("INT") { stop } run end end config.join Yeah, so, notice the ProgressHandler cl...