PDA

View Full Version : can't get "How to set up Ruby on Rails" to work


Coldhead
10-12-2007, 07:34 PM
Hi all,
First post here, so hello everybody.

I've followed the knowledge base article and just get 'Application error
Rails application failed to start properly' when I go to http://first.mydomain.com/first/view.

http://first.mydomain.com brings up the rails welcome screen fine but shows same error in the flash area when I click the 'About your application’s environment' link on welcome screen.

All db's and the user have been created. I have added eruby and handlers in .htacess ...
AddType application/x-httpd-eruby .rhtml .rtml
Action application/x-httpd-eruby /cgi-bin/eruby

Commenting these out make no difference.

Any Ideas?

Do I have to add $:.push("/home/mydomain.com/ruby/gems") somewhere in my rails app?

Do I need to change dispatch.cgi/.rb/.fcgi to some other path?

Thanks in advance,
Paul

Coldhead
10-13-2007, 02:35 PM
Seems that the link to 'first' placed under 'public_html' is world writable acording to the error log. I chmodded it to 755 and don't seem to get the error anymore.

shumisha
10-16-2007, 02:45 PM
Hi, I just got some info from support on this : you have to go to :
/config/environment.rb and comment out the line that says
RAILS_GEM_VERSION="1.2.5" .....

They say their install of RoR does not report any version, which breaks apps that do require a specific version, just as their sample one seems to do.
Works for me, at least, I can see superman details ...

Regards

bambino_tostare
12-03-2007, 09:25 AM
/config/environment.rb and comment out the line that says
RAILS_GEM_VERSION="1.2.5" .....

Fantastic! My app broke (with no changes from me) a while back and i just got round to fixing it - this fix worked for me. (I did email support but got no answer).

Thanks!

yddims
12-04-2007, 03:57 PM
Shumisha nice work on getting this configuration necessity from BH.
I tried several times over the last week to get Rails working...
I knew it was going to be some little BH specific thing.




Originally Posted by shumisha View Post
/config/environment.rb and comment out the line that says
RAILS_GEM_VERSION="1.2.5" .....

lancehomer
05-14-2008, 02:41 PM
I'm trying to figure out why Ruby on Rails isn't working for me.

In the prior threads someon said to go to /config/environment.rb and comment out the line that says
RAILS_GEM_VERSION="1.2.5" .....

My environment.rb has the following instead:

# Specifies gem version of Rails to use when vendor/rails is not present^M
RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION^

Should I comment that out? Am I supposed to be starting the application from CPANEL or not? I still can't access it from a public web browser. Nothing gets written to the production log when I try from a public web browser. I am able run the app from the command line with "elinks http://locahost:12001/". This writes to the production log, but nothing that helps me troubleshoot why I can't get to it from a browser.

goldfire
06-18-2008, 03:05 PM
I developed my rails app on Windows. When I transferred my site to BlueHost (by making a Subversion repository on BlueHost, migrating my existing repository to it, and then checking out), it didn't work. After many hours of frustration, I finally figured out that I needed to give execute permissions to dispatch.cgi. That solved the problem.

But, I can't get dispatch.fcgi working -- apache seems not to execute it, but read it. I'm still using a frozen version of rails 1.2.6, given that I'm new to rails and the documentation hasn't caught up to 2.x yet. Any ideas?