Ah well the is not on fcgi but passenger :) I would say that most of the serious ruby/rails hosting now offer passenger as an option so shouldn't limit your application portability.
On Sun, Apr 15, 2012 at 11:41 PM, Dave Everitt <dever...@innotts.co.uk>wrote: > Understood about compatible - this is David's Camping server, and I'm > experimenting with QUERY_STRING in the URL and various other env vars - > DaveE > > > On Sat, Apr 14, 2012 at 10:38, Dave Everitt <dever...@innotts.co.uk> >> wrote: >> >>> Haha! How did you get Spock on board... :-) >>> >>> I must admit I'm a little confused about the sytnax for environmental >>> variables, because as well as >>> @env[HTTP_REFERER] >>> this also works: >>> ENV['SCRIPT_NAME'] >>> >>> For a test I just used it like this: >>> ENV['SCRIPT_NAME'].scan(/\w+\.**\w+$/) >>> to get the Camping file's name (with whatever file extension rb, rbx, >>> cgi) instead of using __FILE__ >>> >> >> The only reason ENV['HTTP_REFERER'] works for you is that you deploy >> on (Fast)CGI. You should only depend on @env if you want your app to >> be compatible with other servers. >> ______________________________**_________________ >> Camping-list mailing list >> Camping-list@rubyforge.org >> http://rubyforge.org/mailman/**listinfo/camping-list<http://rubyforge.org/mailman/listinfo/camping-list> >> > > ______________________________**_________________ > Camping-list mailing list > Camping-list@rubyforge.org > http://rubyforge.org/mailman/**listinfo/camping-list<http://rubyforge.org/mailman/listinfo/camping-list> >
_______________________________________________ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list