Hi !!! I''ve just seen this message on http://redhanded.hobix.com/inspect/theCampingServer.html I''d really like to see distributions offer a package which would allow simple setup of TheCampingServer, just as you see with PHP. If you''re interested in seeing this happen for the upcoming Camping 1.5 release, introduce yourself on the camping-list<http://rubyforge.org/mailman/listinfo/camping-list> . I would really like to see camping app to work just by dropping a the file in a directory. and it is exactly what I am trying to do. here is what I did so far: I use a simple FastCGI postamble Blog::Models::Base.establish_connection :adapter => ''sqlite3'', :database => ''/home/mathieu/mv/rf/public/blog-new.db'' Blog::Models::Base.logger = Logger.new(''camping.log'') Blog::Models::Base.threaded_connections=false Blog.create if Blog.respond_to? :create require ''fcgi'' require ''camping/fastcgi'' Dir.chdir(File.dirname(__FILE__)) Camping::FastCGI.start(Blog) the lib/camping/fastcgi.rb was missing in the camping 1.4.2 gem, so I took it from SVN trying to debug stuff, I could not get a backtrace, I found that a PLUS_SIGN was missing at line 88 of fastcgi.rb I first renamed the blog.rb to blog.fcgi but then I decided to use AddHandler fastcgi-script .rb I copied the .htaccess from rails, to make it so /blog.rb is loaded automatically. i dont know how I could make /blog to launch /blog.rb unless this is just Apache magic which let you drop the extension. by the way, I use Apache and it is what I want to use. I feel I am very close from the goal, but now the NotFound class get called saying /blog.rb not found any idea what am I doing wrong ???? thanks -- Everyone is trying their hardest to do their job but management has set it up so that it''s impossible. Take the control over your money, track your expenses http://justbudget.com Mathieu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20060718/12eaaff3/attachment.html
On Tue, Jul 18, 2006 at 01:36:15PM +0900, Mathieu Jobin wrote:> I would really like to see camping app to work just by dropping a the file > in a directory. and it is exactly what I am trying to do.You''ll need to use Camping::FastCGI.serve instead of Camping::FastCGI.start. The `serve` method loads (and watches) a directory. The `start` method mounts a single class.> the lib/camping/fastcgi.rb was missing in the camping 1.4.2 gem, so I took > it from SVNInstall the latest development gem, it''s quite stable. gem install camping --source code.whytheluckystiff.net> by the way, I use Apache and it is what I want to use.There are many Apaches in your forest and we all respect that, Mathieu. _why
thank you, I don''t quite get it where should I use .serve ? do I need to create a ''global'' camping file, or put .serve in each camping application ? On 7/18/06, why the lucky stiff <why at whytheluckystiff.net> wrote:> > On Tue, Jul 18, 2006 at 01:36:15PM +0900, Mathieu Jobin wrote: > > I would really like to see camping app to work just by dropping a the > file > > in a directory. and it is exactly what I am trying to do. > > You''ll need to use Camping::FastCGI.serve instead of Camping:: > FastCGI.start. > The `serve` method loads (and watches) a directory. The `start` method > mounts a > single class. > > > the lib/camping/fastcgi.rb was missing in the camping 1.4.2 gem, so I > took > > it from SVN > > Install the latest development gem, it''s quite stable. > > gem install camping --source code.whytheluckystiff.net > > > by the way, I use Apache and it is what I want to use. > > There are many Apaches in your forest and we all respect that, Mathieu. > > _why > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >-- Everyone is trying their hardest to do their job but management has set it up so that it''s impossible. Take the control over your money, track your expenses http://justbudget.com Mathieu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20060718/d9c57174/attachment-0001.html
On Tue, Jul 18, 2006 at 04:15:19PM +0900, Mathieu Jobin wrote:> thank you, I don''t quite get it where should I use .serve ? do I need to > create a ''global'' camping file, or put .serve in each camping application ?You can put in the "postamble" if you like. Wherever it''s going to get executed by FastCGI. All of the different FastCGI options (with code) are explained here: <http://camping.rubyforge.org/classes/Camping/FastCGI.html> _why
Hi, I still don''t understand why should I use .serve? You are saying .serve loads and watches a directory. A postamble is usually to load a single class, thus .start should be use, no? also, I don''t understand where the rewriting magic should be done so /blog.fcgi can be written /blog/ ? thanks On 7/19/06, why the lucky stiff <why at whytheluckystiff.net> wrote:> > On Tue, Jul 18, 2006 at 04:15:19PM +0900, Mathieu Jobin wrote: > > thank you, I don''t quite get it where should I use .serve ? do I need to > > create a ''global'' camping file, or put .serve in each camping > application ? > > You can put in the "postamble" if you like. Wherever it''s going to get > executed > by FastCGI. > > All of the different FastCGI options (with code) are explained here: > <http://camping.rubyforge.org/classes/Camping/FastCGI.html> > > _why > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >-- gcc -O0 -DRUBY_EXPORT -rdynamic -Wl,-export-dynamic -L. main.o -lruby-static -ldl -lcrypt -lm -o ruby Everyone is trying their hardest to do their job but management has set it up so that it''s impossible. Take the control over your money, track your expenses http://justbudget.com Mathieu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20060724/aac5e845/attachment.html