# Deployment doesn't work!

**URL:** <https://www.ruby-forum.com/t/deployment-doesnt-work/112662>\
**Category:** Deployment\
**Created:** [August 21, 2007, 10:25pm UTC](https://www.ruby-forum.com/t/deployment-doesnt-work/112662 "2007-08-21T22:25:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![yonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/838e76/32.png) [@yonkey](https://www.ruby-forum.com/u/yonkey)\
**Post date:** [August 21, 2007, 10:25pm UTC](https://www.ruby-forum.com/t/deployment-doesnt-work/112662/1 "2007-08-21T22:25:53Z")

</div>

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](http://www.redmine.org)).

I’m using Fedora Core 4 and Ruby 1.8.4.

Thanks!

---

<div class="post-metadata">

**Author:** ![yonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/838e76/32.png) [@yonkey](https://www.ruby-forum.com/u/yonkey)\
**Post date:** [August 21, 2007, 10:37pm UTC](https://www.ruby-forum.com/t/deployment-doesnt-work/112662/2 "2007-08-21T22:37:52Z")

</div>

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/](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](http://www.urbanpuddle.com/articles/2007/05/09/install-ruby-on-rails-on-ubuntu-feisty-fawn)

cheers,  
Vince

On 8/21/07, Neil R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> application deployed?
> 
> >

–  
support independent business – [http://www.buyindie.net/](http://www.buyindie.net/)

---

<div class="post-metadata">

**Author:** ![yonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/838e76/32.png) [@yonkey](https://www.ruby-forum.com/u/yonkey)\
**Post date:** [August 21, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/deployment-doesnt-work/112662/3 "2007-08-21T22:42:14Z")

</div>

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! 🙂

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/](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…)  
> [NameBright - Coming Soon](http://www.urbanpuddle.com/articles/2007/05/09/install-ruby-on-rails-on-ubuntu-feisty-fawn)
> 
> cheers,  
> Vince
> 
> On 8/21/07, Neil R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > application deployed?
> > 
> > >
> 
> –  
> support independent business – [http://www.buyindie.net/](http://www.buyindie.net/)

---

<div class="post-metadata">

**Author:** ![yonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/838e76/32.png) [@yonkey](https://www.ruby-forum.com/u/yonkey)\
**Post date:** [August 21, 2007, 11:01pm UTC](https://www.ruby-forum.com/t/deployment-doesnt-work/112662/4 "2007-08-21T23:01:51Z")

</div>

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! 🙂
> 
> 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/](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…)  
> > [NameBright - Coming Soon](http://www.urbanpuddle.com/articles/2007/05/09/install-ruby-on-rails-on-ubuntu-feisty-fawn)
> > 
> > cheers,  
> > Vince
> > 
> > On 8/21/07, Neil R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> > 
> > > application deployed?
> > > 
> > > >
> > 
> > –  
> > support independent business – [http://www.buyindie.net/](http://www.buyindie.net/)

---

<div class="post-metadata">

**Author:** ![yonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/838e76/32.png) [@yonkey](https://www.ruby-forum.com/u/yonkey)\
**Post date:** [August 21, 2007, 11:39pm UTC](https://www.ruby-forum.com/t/deployment-doesnt-work/112662/5 "2007-08-21T23:39:58Z")

</div>

On 8/21/07, Neil R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

---

<div class="post-metadata">

**Author:** ![yonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/838e76/32.png) [@yonkey](https://www.ruby-forum.com/u/yonkey)\
**Post date:** [August 21, 2007, 11:47pm UTC](https://www.ruby-forum.com/t/deployment-doesnt-work/112662/6 "2007-08-21T23:47:22Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

---

<div class="post-metadata">

**Author:** ![yonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/838e76/32.png) [@yonkey](https://www.ruby-forum.com/u/yonkey)\
**Post date:** [August 21, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/deployment-doesnt-work/112662/7 "2007-08-21T23:50:02Z")

</div>

On 8/21/07, Neil R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

---

<div class="post-metadata">

**Author:** ![yonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/838e76/32.png) [@yonkey](https://www.ruby-forum.com/u/yonkey)\
**Post date:** [August 21, 2007, 11:53pm UTC](https://www.ruby-forum.com/t/deployment-doesnt-work/112662/8 "2007-08-21T23:53:03Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

---

<div class="post-metadata">

**Author:** ![yonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/838e76/32.png) [@yonkey](https://www.ruby-forum.com/u/yonkey)\
**Post date:** [August 22, 2007, 2:12am UTC](https://www.ruby-forum.com/t/deployment-doesnt-work/112662/9 "2007-08-22T02:12:12Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ## Vince W. wrote:
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
support independent business – [http://www.buyindie.net/](http://www.buyindie.net/)

---

<div class="post-metadata">

**Author:** ![yonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/838e76/32.png) [@yonkey](https://www.ruby-forum.com/u/yonkey)\
**Post date:** [August 22, 2007, 2:53am UTC](https://www.ruby-forum.com/t/deployment-doesnt-work/112662/10 "2007-08-22T02:53:05Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > ## Vince W. wrote:
> > 
> > Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> > 
> > >
> 
> –  
> support independent business – [http://www.buyindie.net/](http://www.buyindie.net/)

---

<div class="post-metadata">

**Author:** ![yonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/838e76/32.png) [@yonkey](https://www.ruby-forum.com/u/yonkey)\
**Post date:** [August 22, 2007, 4:17am UTC](https://www.ruby-forum.com/t/deployment-doesnt-work/112662/11 "2007-08-22T04:17:37Z")

</div>

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.
> 
> [NameBright - Coming Soon](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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > > You’ve got to map the root of your directory to a controller and
> > > 
> > > > –  
> > > > Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> > 
> > >
> 
> –  
> support independent business – [http://www.buyindie.net/](http://www.buyindie.net/)

---

<div class="post-metadata">

**Author:** ![yonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/838e76/32.png) [@yonkey](https://www.ruby-forum.com/u/yonkey)\
**Post date:** [August 22, 2007, 3:09am UTC](https://www.ruby-forum.com/t/deployment-doesnt-work/112662/12 "2007-08-22T03:09:15Z")

</div>

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](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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > You’ve got to map the root of your directory to a controller and
> > 
> > > –  
> > > Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
support independent business – [http://www.buyindie.net/](http://www.buyindie.net/)
