Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Nov 19, 2010 3:38 pm 
Offline

Joined: Fri Nov 19, 2010 3:32 pm
Posts: 1
I can't get my rails app to work on my Apache server using Passenger.

I set up a rails app in a dir, and set up apache's virtual host to point to the public dir, as mentioned in the linode documentation for rails. The webapp worked; I saw the rails splash page (Welcome Aboard) when I navigated to my website in a browser. But I wanted to start creating the rails app.

First, I installed the Passenger gem and ran 'passenger-install-apache2-module'. After following all the directions, I then ran 'rails generate controller home index'. Then I proceeded to delete index.html in my public folder of the rails app, modify routes.rb in the config dir to say root :to => "home#index". But now I get a 500 Internal Server Error going to my website, and I don't understand why. The error logs just say, "Premature end of script headers:" every time I go to the site. If I put index.html back into the public dir of my rails app, i see that again on the browser, but it appears rails isn't handing the routing.

Anyone know how to fix this??


Top
   
 Post subject:
PostPosted: Fri Nov 26, 2010 4:58 am 
Offline

Joined: Fri Nov 26, 2010 4:55 am
Posts: 1
Hi there, though I don't have a direct answer for you, but I am currently just finishing up writing my guide for Rails and Django deployment on Linode:

https://github.com/kesun421/Linode-Setu ... ango-Rails

I have tested these guides multiple times, and both works flawlessly for me. Hope this helps one way or the other.

Ke


Top
   
 Post subject: Rails | Apache Passenger
PostPosted: Wed Dec 01, 2010 2:42 am 
Offline
Newbie

Joined: Thu Sep 02, 2010 4:16 am
Posts: 3
Did you add the passenger configuration settings to your Apache.conf file?

I believe I had to add those to get it to work.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
RSS

Powered by phpBB® Forum Software © phpBB Group