Welcome Guest | Login

dispatch.fcgi echoes to the browser (ouch!)

Hi everyone,

I'm just attempting to deploy my first Rails app on Hosting Rails.

I've uploaded everything and tried at least to do it all by the book. Checked all my permissions etc.

But when I go to the root URL of my site in the browser it displays the contents of the dispatch.fcgi file. Something not right there, I suspect!

Any ideas where I should be looking to sort this out?

Thanks.

2007-03-05 05:47 AM

Hi there - yeah this usually means you forgot to comment out the AddHandler fcgi line at the top of the .htaccess of the rails app.  Give that a try and let me know how it goes.

Cheers,
~William

2007-03-05 06:01 AM

Thanks for that, William. I've now got past that using your suggestion (don't remember seeing it in the instructions... I'll check).

Now my Rails app is "failing to start".

My app is on Rails version 1.1.6 according to environment.rb. The server is on version 1.2.2 according to "# rails -v".

I suppose this is where "freezing gems" comes in.

Would it make more sense to upgrade the app now to 1.2.2 and then freeze it? If so, how?

2007-03-05 06:24 AM

You could upgrade to 1.2.2 - essentially all you need to to is make it so in your environment.rb.  Later you could run rake gems:freeze  once things are set.

For the failed to start error, check out these threads.
http://www.hostingrails.com/forums/wiki_thread/15http://www.hostingrails.com/forums/wiki_thread/9

Cheers,

~William

2007-03-05 07:09 AM

I have set the environment to Rails 1.2.2 but now I'm getting this error when I browse to the site:

---
We're sorry, but something went wrong.

We've been notified about this issue and we'll take a look at it shortly.
---

The app loads ok when I do:
# ruby script/console production

2007-03-05 02:43 PM

Hmm - if you developed on 1.1.6 you should stick with it.  If you really want to move up please email support with the URL in question and we'll take a look and see if we can help.  

Cheers,

~William

2007-03-05 02:59 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.