Deployment doesn't work!

Hello,

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?

The application I’m trying to install is Redmine
(http://www.redmine.org).

I’m using Fedora Core 4 and Ruby 1.8.4.

Thanks!

Doesn’t mongrel require Ruby 1.8.6? I know that mongrel_cluster isn’t
happy with older versions of Ruby. A quick googling found this
article: http://www.digitalmediaminute.com/howto/fc4rails/

If you’re willing to run Ubuntu, I wrote up a pretty painless HowTo
(which in any case might help…)
http://www.urbanpuddle.com/articles/2007/05/09/install-ruby-on-rails-on-ubuntu-feisty-fawn

cheers,
Vince

On 8/21/07, Neil R. [email protected] wrote:

application deployed?


support independent business – http://www.buyindie.net/

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.

Thanks Vince! :slight_smile:

Vince W. wrote:

Doesn’t mongrel require Ruby 1.8.6? I know that mongrel_cluster isn’t
happy with older versions of Ruby. A quick googling found this
article: http://www.digitalmediaminute.com/howto/fc4rails/

If you’re willing to run Ubuntu, I wrote up a pretty painless HowTo
(which in any case might help…)
http://www.urbanpuddle.com/articles/2007/05/09/install-ruby-on-rails-on-ubuntu-feisty-fawn

cheers,
Vince

On 8/21/07, Neil R. [email protected] wrote:

application deployed?


support independent business – http://www.buyindie.net/

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.

Thanks Vince! :slight_smile:

Vince W. wrote:

Doesn’t mongrel require Ruby 1.8.6? I know that mongrel_cluster isn’t
happy with older versions of Ruby. A quick googling found this
article: http://www.digitalmediaminute.com/howto/fc4rails/

If you’re willing to run Ubuntu, I wrote up a pretty painless HowTo
(which in any case might help…)
http://www.urbanpuddle.com/articles/2007/05/09/install-ruby-on-rails-on-ubuntu-feisty-fawn

cheers,
Vince

On 8/21/07, Neil R. [email protected] wrote:

application deployed?


support independent business – http://www.buyindie.net/

On 8/21/07, Neil R. [email protected] wrote:

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).

-Vince

Ok, it looks like I uninstalled mongrel, so I just gem installed mongrel
and mongrel cluster, then did a mongrel_rails start in my folder.

Now there’s no longer a 403 page, there’s the “Ruby on Rails: Welcome
aboard” page, it’s running on port 3000.

I got to this stage before, but I’m stumped on how to get it to run my
actual application now, rather than that default page.

Neil

Vince W. wrote:

On 8/21/07, Neil R. [email protected] wrote:

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).

-Vince

On 8/21/07, Neil R. [email protected] wrote:

Now there’s no longer a 403 page, there’s the “Ruby on Rails: Welcome
aboard” page, it’s running on port 3000.

You’ll need to remove the index.html page from the public folder in
your rails app…

-Vince

Ok. I’ve deleted it and now it says:

Routing Error

no route found to match “/” with {:method=>:get}

Neil

Vince W. wrote:

On 8/21/07, Neil R. [email protected] wrote:

Now there’s no longer a 403 page, there’s the “Ruby on Rails: Welcome
aboard” page, it’s running on port 3000.

You’ll need to remove the index.html page from the public folder in
your rails app…

-Vince

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

map.connect ‘’, :controller => “home”, :action => “index”

-Vince

On 8/21/07, Neil R. [email protected] wrote:

Vince W. wrote:

Posted via http://www.ruby-forum.com/.


support independent business – http://www.buyindie.net/

Hi Vince,

Well, I’m getting this error now:

NameError in HomeController#index

uninitialized constant HomeController

RAILS_ROOT: /var/www/html/redmine/config/…

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

map.connect ‘’, :controller => “home”, :action => “index”

-Vince

On 8/21/07, Neil R. [email protected] wrote:

Vince W. wrote:

Posted via http://www.ruby-forum.com/.


support independent business – http://www.buyindie.net/

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.

http://www.urbanpuddle.com/articles/2006/09/06/10-steps-i-took-to-learn-ruby-on-rails

#1 is still a good place to start (though you may want to skip to page
2). Good luck!

-Vince

On 8/21/07, Neil R. [email protected] wrote:

You’ve got to map the root of your directory to a controller and


Posted via http://www.ruby-forum.com/.


support independent business – http://www.buyindie.net/

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.

http://www.urbanpuddle.com/articles/2006/09/06/10-steps-i-took-to-learn-ruby-on-rails

#1 is still a good place to start (though you may want to skip to page
2). Good luck!

-Vince

On 8/21/07, Neil R. [email protected] wrote:

You’ve got to map the root of your directory to a controller and


Posted via http://www.ruby-forum.com/.


support independent business – http://www.buyindie.net/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs