Saurabh Agarwal
2009-Jul-18 16:28 UTC
rails 2.3.2.not working working with cgi - How to revert
Hi All, As the problem faced by many other folks that rails 2.3.2 is not working with cgi, Now I want to revert to rails 2.2.2 on my shared host (bluehost ) can anybody guide me how to revert to 2.2.2. I tried the following: 1. I installed the older rails gem "gem install rails --version 2.2.2 --include-dependencies " 2. I tried to set the PATH env to my rails 2.2.2 version and also updated the .gemrc file but no luck it seems i am still using 2.3.2 Any suggestions please. Thanks a lot Regards Saurabh -- Posted via http://www.ruby-forum.com/.
August Lilleaas
2009-Jul-18 16:49 UTC
Re: rails 2.3.2.not working working with cgi - How to revert
You have two alternatives. 1. Change the RAILS_GEM_VERSION in enviroment.rb 2. Vendor rails (put a full copy of rails in vendor/rails) On Jul 18, 6:28 pm, Saurabh Agarwal <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi All, > > As the problem faced by many other folks that rails 2.3.2 is not working > with cgi, Now I want to revert to rails 2.2.2 on my shared host > (bluehost ) can anybody guide me how to revert to 2.2.2. > > I tried the following: > 1. I installed the older rails gem "gem install rails --version 2.2.2 > --include-dependencies > " > > 2. I tried to set the PATH env to my rails 2.2.2 version and also > updated the .gemrc file > > but no luck it seems i am still using 2.3.2 > > Any suggestions please. > > Thanks a lot > > Regards > Saurabh > -- > Posted viahttp://www.ruby-forum.com/.
bill walton
2009-Jul-18 16:52 UTC
Re: rails 2.3.2.not working working with cgi - How to revert
Hi Saurabh, On Sat, 2009-07-18 at 18:28 +0200, Saurabh Agarwal wrote:> Hi All, > > As the problem faced by many other folks that rails 2.3.2 is not working > with cgi, Now I want to revert to rails 2.2.2 on my shared host > (bluehost ) can anybody guide me how to revert to 2.2.2. > > I tried the following: > 1. I installed the older rails gem "gem install rails --version 2.2.2 > --include-dependencies > " > > 2. I tried to set the PATH env to my rails 2.2.2 version and also > updated the .gemrc file > > but no luck it seems i am still using 2.3.2Best way is probably to freeze the version of rails you want to use in your development version, then deploy that to your shared host. Easiest way is probably to modify environment.rb. RAILS_GEM_VERSION = ''2.2.2'' If that version isn''t available rails will raise an exception and won''t start, but at least you''ll know right away. HTH, Bill
Saurabh Agarwal
2009-Jul-18 17:47 UTC
Re: rails 2.3.2.not working working with cgi - How to revert
Thanks a lot it seems that this problem is solved but I am still I am facing issue , If any rails guru can help: On the webpage I am getting the following error : Rails application failed to start properly Following is the output of dispatch.fcgi . ./dispatch.fcgi Requiring REXML Content-Type: text/html; charset=utf-8 Set-Cookie: _session_id=f39adc9190bf58558fa67712b9fe29cf; path=/ Status: 302 Found Location: http://:/account/login X-Runtime: 1ms Cache-Control: no-cache Content-Length: 88 <html><body>You are being <a href="http://:/account/login">redirected</a>.</body></html>reviewpu-2y48VUW+hbfAi70hqydFXw@public.gmane.org Thanks Saurabh bill walton wrote:> Hi Saurabh, > > On Sat, 2009-07-18 at 18:28 +0200, Saurabh Agarwal wrote: >> >> 2. I tried to set the PATH env to my rails 2.2.2 version and also >> updated the .gemrc file >> >> but no luck it seems i am still using 2.3.2 > > Best way is probably to freeze the version of rails you want to use in > your development version, then deploy that to your shared host. > > Easiest way is probably to modify environment.rb. > RAILS_GEM_VERSION = ''2.2.2'' > If that version isn''t available rails will raise an exception and won''t > start, but at least you''ll know right away. > > HTH, > Bill-- Posted via http://www.ruby-forum.com/.
I ran into similar issues on Bluehost after they updated rails to 2.3.2 and realized I had my .htaccess wrong and rails had been running in cgi mode. I put together a detailed article with a new bluehost rails install guide they haven''t thought to put on the support site since the recent upgrade. http://jibwa.com/code-and-documentation-for-programmers/bluehost-rails-update-cgi-problems.html On Jul 18, 10:47 am, Saurabh Agarwal <rails-mailing-l...@andreas- s.net> wrote:> Thanks a lot it seems that this problem is solved but I am still I am > facing issue , If any rails guru can help: > > On the webpage I am getting the following error : Rails application > failed to start properly > > Following is the output of dispatch.fcgi . > > ./dispatch.fcgi > Requiring REXML > Content-Type: text/html; charset=utf-8 > Set-Cookie: _session_id=f39adc9190bf58558fa67712b9fe29cf; path=/ > Status: 302 Found > Location: http://:/account/login > X-Runtime: 1ms > Cache-Control: no-cache > Content-Length: 88 > > <html><body>You are being <a > href="http://:/account/login">redirected</a>.</body></html>revie...@reviewpunch.com > > Thanks > Saurabh > > > > bill walton wrote: > > Hi Saurabh, > > > On Sat, 2009-07-18 at 18:28 +0200, Saurabh Agarwal wrote: > > >> 2. I tried to set the PATH env to my rails 2.2.2 version and also > >> updated the .gemrc file > > >> but no luck it seems i am still using 2.3.2 > > > Best way is probably to freeze the version of rails you want to use in > > your development version, then deploy that to your shared host. > > > Easiest way is probably to modify environment.rb. > > RAILS_GEM_VERSION = ''2.2.2'' > > If that version isn''t available rails will raise an exception and won''t > > start, but at least you''ll know right away. > > > HTH, > > Bill > > -- > Posted viahttp://www.ruby-forum.com/.