Rails works only if 'ruby script/server'

Rails works only if 'ruby script/server'

Posted by: Corbin
Posted on: 2006-03-14 20:16:00

I might be missing something simple after following along the wiki, but I can only get RAILS to operate if I run the server using the command 'ruby script/server' at the shell prompt.

This doesn't seem right.

It is only when I 'ruby script/server' that I go to http://domain:3000/controller/action
I am getting what I expect to see.

If I do not run the server, and I go to:
http://domain/controller/action
I get: Application error (Rails)

and here is an excerpt of production.log:

Re: Rails works only if 'ruby script/server'

Posted by: Corbin
Posted on: 2006-03-14 20:27:00

Ok. I figured out my problem. I had edited my dispatch.fcgi with emacs and I had a file called dispatch.fcgi~ in the directory as well.

I deleted the dispatch.fcgi~ and *bingo* worked!

Re: Rails works only if 'ruby script/server'

Posted by: Rowbee
Posted on: 2006-03-18 01:11:00

I just figured out the minimal steps required to install and run typo on DreamHost. I created a step-by-step guide, so people can get typo installed and running quickly.

www.rowbee.com/articles/2006/03/17/typo-on-dreamhost



Have Fun.



Re: Rails works only if 'ruby script/server'

Posted by: slimchrisp
Posted on: 2006-04-07 07:53:00

I have the same problem. And I've enabled fast cgi. Followed the wiki, all of it. But here's the other thing. I have my app in cvs, and use a shell script that
simply does a cvs export, and then moves it over to the domain
directory. I exported it using a cvs tag yesterday, and it worked
fine. I redeployed using the exact same tag a little while later, and
now I get the error. I'm guessing it has something to
do with processes running that I am unable to kill, and not configuration. Is there anything
else I can do besides run 'killall -v dispatch.fcgi' that will
guarrantee my processes die?

Tags: gemslibrubyusrhttpwikiconstactionexcerptshell