I’ve installed Ruby on Rails and I’m able to run my application using
Webrick, but obviously that’s not robust enough to use, since it’ll only
last for a few minutes before the connection dies.
I’ve tried installing LiteSpeed, Mongrel, FastCGI and I’ve had countless
problems installing all of them. Can someone please tell me
step-by-step how I can install and use one of those to actually get my
application deployed?
Ok, I had some problems with that one too. I access Fedora through SSH,
so there’s no GUI. Also, I’m using Apache for my http daemon, so
Lighttpd isn’t doing anything. I tried following the rest, and now all I
see is a 403 Access Forbidden.
I wish I could install Ubuntu, but I don’t own the server. It’s a VPS.
Neil
Neil R. wrote:
Yeah, Mongrel was complaining, but the site I was following said that it
wouldn’t matter… obviously it does.
I’ll try going through that tutorial, because I haven’t tried Lighttpd
yet.
Ok, I had some problems with that one too. I access Fedora through SSH,
so there’s no GUI. Also, I’m using Apache for my http daemon, so
Lighttpd isn’t doing anything. I tried following the rest, and now all I
see is a 403 Access Forbidden.
Are the processes running?
$ ps aux | grep nginx
$ ps aux | grep mongrel
See if they’re running, look to see which user they’re running as and
then make sure the root of your directory has the proper permissions.
Also, you might try just going into your rails directory and typing
$ mongrel_rails start
that should at least let you see your app on port 8000 (or whichever
port it took).
Ok, I had some problems with that one too. I access Fedora through SSH,
so there’s no GUI. Also, I’m using Apache for my http daemon, so
Lighttpd isn’t doing anything. I tried following the rest, and now all I
see is a 403 Access Forbidden.
Are the processes running?
$ ps aux | grep nginx
$ ps aux | grep mongrel
See if they’re running, look to see which user they’re running as and
then make sure the root of your directory has the proper permissions.
Also, you might try just going into your rails directory and typing
$ mongrel_rails start
that should at least let you see your app on port 8000 (or whichever
port it took).
You’ve got to map the root of your directory to a controller and
action. e.g. (and I do mean for example here, you’ll have to replace
this which what ever is appropriate for your application). To do
that, put this line somewhere near the top of your routes.rb
What do the “home” and “index” values represent? Are those filenames?
I feel like I’m almost there!
Neil
Vince W. wrote:
Hi Neil,
You’ve got to map the root of your directory to a controller and
action. e.g. (and I do mean for example here, you’ll have to replace
this which what ever is appropriate for your application). To do
that, put this line somewhere near the top of your routes.rb
Thanks Vince. It looks like I’d have to set up a bunch of stuff in
order to get this application to work. But it’s a bit strange that the
application runs fine using WEBRick without any need to create any
controllers or anything. Is there something simple that I’m missing
which lets Mongrel run applications like WEBrick?
Neil
Vince W. wrote:
Hi Neil,
Yes, the home is for the home controller and the index is an action
inside the home controller. It sounds like you have the deployment
solved and that you just need to get a bit into programming ruby and
rails. Here’s a post I wrote a loooong time ago detailing how I
started.
Yes, the home is for the home controller and the index is an action
inside the home controller. It sounds like you have the deployment
solved and that you just need to get a bit into programming ruby and
rails. Here’s a post I wrote a loooong time ago detailing how I
started.