I had a devil of a time with this very subject. You might want to check this
thread:
http://groups.google.com/group/israelrb/browse_frm/thread/5df3fa040d3a4046/.
There was a solution to my immediate problem in there, but the
conclusion
seems to be that FastCGI is contraindicated for Camping.
On Windows, I ended up running a mongrel server, using Apache as a proxy.
This worked fine, except I couldn''t figure out how to make that into a
windows service ... but that''s another problem.
Hope this helps,
-Eli
On 7/31/07, Brian Corrigan <bcorrigan78 at gmail.com>
wrote:>
> Hey Folks,
>
> I''m deploying a camping app on an internal Apache2 + FastCGI
server at my
> office. Of course, on my Mac it works great, but I can''t get
things to work
> with Apache and FCGI. I''ve followed the directions on
why''s page
> documenting how to do this, but I''m getting the following error in
my Apache
> error.log file:
>
> FastCGI: (dynamic) server "/var/www/campapp/dispatch.fcgi" has
failed to
> remain running for 30 seconds given 3 attempts
>
> If I just go run the dispatch.fcgi file, I get no output. I hit enter and
> I''m back to the prompt. In my web browser, this all shows up as a
500
> error.
>
> Anyone have an idea? Here is a copy of my dispatch file:
>
> #!/usr/bin/ruby
> require ''rubygems''
> require ''camping/fastcgi''
>
> current = File.direname(__FILE__)
>
> Camping::Models::Base.establish_connection :adapter =>
''sqllite3'',
> :database => File.expand_path(current+ ''/camping.db'')
> Camping::FastCGI.server(current)
>
> Thanks a lot!
> -Brian
>
> _______________________________________________
> Camping-list mailing list
> Camping-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>
--
www.megastructure.org
http://www.last.fm/user/coldphage/
Bubs: Let''s head down to the Datum Center and see what we can find.
Strong Bad: Datum sounds good.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/camping-list/attachments/20070731/df9d1df1/attachment-0001.html