Rails, etc

software development

#1

All,

A rails question: has anyone gotten fastCGI working with rails yet? When I switch my .htaccess over, I get what appear to be timeout errors. It works fine under normal CGI operation, but it’s slow.

Also, I have been poking around for a solution to developing rails applications remotely, and I stumbled on the tramp project for emacs:

http://savannah.gnu.org/projects/tramp/

It allows you to edit files over ssh. It has worked pretty well for me so far on both windows (using Putty) and OSX. Any other hints or suggestions for easing development are welcome.

Cheers,
Carson


#2

Rails does work with FastCGI on our servers. You may need to make sure the dispatch.fcgi file does not have Windows newline characters as that has been a problem for some other people.

  • Dallas
  • DreamHost Head Honcho/Founder

#3

Well, I should have tested it more extensively, but I ran “dos2unix dispatch.fcgi” and it now works. Odd, since I ran rails entirely from dreamhost.

Rails rocks, btw. For small projects, it really is a pleasure to work with. Thanks for getting this going on Dreamhost.

Thanks,
Carson


#4

While I have you here, would it be possible to put subversion on the dreamhost machines? It seems like a lot of the rails stuff is hosted with subversion, and it would be nice to be able to download it directly on the dreamhost machines.

Cheers,
Carson


#5

We’ll look into, yeah. It has been requested by other people as well.

  • Dallas
  • DreamHost Head Honcho/Founder

#6

Excellent.

Have I mentioned that I love dreamhost? Kickass.

Cheers,
Carson


#7

There’s also some info on the DH wiki:

http://wiki.dreamhost.com/index.php/Ruby_on_Rails

I just added the line ending tip. I have a little info too:

http://convergentarts.com

–which is running typo on rails under fcgi, btw.

-Tom


#8

Rails and FastCGI still isn’t working for me. I created a new app and a simple scaffold and it works under cgi. When I change .htaccess to fast cgi I get the “Rails application failed to start” message. I tried dos2unix and chmod 755 as suggested but neither worked.

Any other suggestions?

Thanks,
Steve


#9

I got it. There were some old, wrongly configured, dispatch.fcgi processes running. I killed those off and it started working.

Thanks,
Steve