Re: Camping into production

2011-10-13 Thread Magnus Holm
On Wed, Oct 12, 2011 at 22:20, Nokan Emiro uzleep...@gmail.com wrote: It seems to me that PATH_INFO is still not properly handled, but that it's always empty. You are right, PATH_INFO is always empty.  If I fill it with the $SCRIPT_NAME value, controllers can be accessed again.  But links

Re: Camping into production

2011-10-13 Thread Nokan Emiro
SCRIPT_NAME is the mount-path. PATH_INFO is the internal app-path. So if you want your application available at xxx.com/my_app/, then the request xxx.com/my_app/add will look like this: SCRIPT_NAME=/my_app PATH_INFO=/add If it's available at xxx.com/, then xxx.com/add will look like

Re: Camping into production

2011-10-13 Thread Magnus Holm
On Thu, Oct 13, 2011 at 21:16, Nokan Emiro uzleep...@gmail.com wrote: SCRIPT_NAME is the mount-path. PATH_INFO is the internal app-path. So if you want your application available at xxx.com/my_app/, then the request xxx.com/my_app/add will look like this:  SCRIPT_NAME=/my_app  

Re: Camping into production

2011-10-12 Thread Magnus Holm
On Wed, Oct 12, 2011 at 21:07, Nokan Emiro uzleep...@gmail.com wrote: Thanks!   I had to hack a bit in camping-2.1.469.gemspec, but now it works. I'm sorry to say this but it still does not work.  :(    I was incautious. After the redirect it shows the right URL in the browser.  That's

Re: Camping into production

2011-10-12 Thread Nokan Emiro
It seems to me that PATH_INFO is still not properly handled, but that it's always empty. You are right, PATH_INFO is always empty. If I fill it with the $SCRIPT_NAME value, controllers can be accessed again. But links generated by R() are still wrong: a 'Add', :href = R(Add) on a page

Re: Camping into production

2011-10-11 Thread Magnus Holm
On Tue, Oct 11, 2011 at 09:02, Nokan Emiro uzleep...@gmail.com wrote: Hi, As you already know I'm working on turning my Camping app into production.  Unfortunatelly I find lots of problems on my way. The next one is here: My Camping app does something dirty on the 'redirect CtrllerName'

Re: Camping into production

2011-10-11 Thread Magnus Holm
On Tue, Oct 11, 2011 at 18:00, Nokan Emiro uzleep...@gmail.com wrote: Sensiteve parts are masked with ***. http://pastie.org/2676396 u. Thanks. This is a bug in Camping which has been fixed in 5423c7a0. You can install the latest development version of Camping by running: gem

Re: Camping into production

2011-10-11 Thread Magnus Holm
On Tue, Oct 11, 2011 at 20:46, Nokan Emiro uzleep...@gmail.com wrote: Thanks!   I had to hack a bit in camping-2.1.469.gemspec, but now it works. :) u Damn, I hate these issues with YAML and gemspecs :/ I uploaded a new version that hopefully will install nicely on 1.8 too. Could you try to

Re: Camping into production

2011-10-11 Thread Nokan Emiro
It has still the same 4 problematic lines: s.date = %q{2011-10-11 00:00:00.0Z} ... s.add_development_dependency(%qrake, [#YAML::Syck::DefaultKey:0xb67fdb98 0.8.7]) ... s.add_dependency(%qrake, [#YAML::Syck::DefaultKey:0xb67fdb98 0.8.7]) ... s.add_dependency(%qrake,