How do you have Ruby and Rails installed?

Added by John Z over 9 years ago

I am continuing to struggle with the issue of keeping my Redmine app up overnight (without anyone on it). Posts in my previous thread about "How do you have Redmine configured?" and others indicate that it has nothing to do with the fact that I'm only feeding the application 512MB of memory. This thread which recounts my research into the matter leads me to believe that my problem lies with how I have Ruby, Rails, and perhaps the MySQL drivers installed.

http://www.redmine.org/boards/2/topics/show/374

So, those of you that are successfully running Redmine on Apache, can you please explain your software setup? I'll go first:

Kubuntu 7.10 with VMware server
Mongrel cluster (x5 instances. Sounds like I could drop to 1)
ruby 1.8.6-patchset111 (from source)
Rails 2.0.2 (from gem install)
Mongrel 1.1.4 (from gem install)
Mongrel_cluster 1.0.5 (from gem install)
Mysql 5.0 (from Ubuntu)
Apache 2.2.8 + mod_proxy, balance, etc. (from source)

We always build Apache from source, but the rest I'd happy to run from Ubuntu packages. Is that what most people do?

My research also led me to suspect the ruby drivers for mysql. The thread in other Ruby-related posts said that the built in MySQL support was bad. How does everyone get their mysql support?

Replies (10)

RE: How do you have Ruby and Rails installed? - Added by bram ueffing over 9 years ago

It runs very quick on my PIII 800 with 512MB of RAM and ubuntu feisty. I installed apache2 + mod-fcgid, mysql5 and ruby (1.8.2) from the default repos. Do you have to run the mongrel cluster? If not i'd advise you to try setting it up with fcgid. You will only have to compile rubygems from source. Setting it up was a breeze. (tell me if you need any pointers)

RE: How do you have Ruby and Rails installed? - Added by bram ueffing over 9 years ago

about the mysql support: haven't had issues with it, importing a big svn repo went smooth and it survived a hard reboot without damage.

RE: RE: How do you have Ruby and Rails installed? - Added by Carl Nygard over 9 years ago

I believe your hanging problems are associated with mongrel. I had similar issues, and when I switched back to WEBrick, they went away. Have had an instance of ruby running through apache/mod_proxy for a while with no issues. Substituting mongrel for WEBrick with no other changes causes the hang you're talking about.

Don't ask me why though...

RE: How do you have Ruby and Rails installed? - Added by Ollivier Robert over 9 years ago

Have you tried with thin instead of mongrel?

RE: How do you have Ruby and Rails installed? - Added by Paul Rivier over 9 years ago

As said in previous thread, I'm using Redmine with Apache mod_rails (aka passenger) without any visible problem.

RE: How do you have Ruby and Rails installed? - Added by John Z over 9 years ago

OK, this is educational.

ueffing, you said that you did everything from Ubuntu packages but had to compile rubygems from source. Why did you have to compile them from source?

Paul R, how did you install mod_rails? Everything from packages? It would be nice to be able to do this simply using rails like PHP with just an apache module for simplicity.

Any details that you can provide are welcome.

RE: How do you have Ruby and Rails installed? - Added by bram ueffing over 9 years ago

Rubygems wasnt available in the repositories so there was no other way. I think it's available in newer releases though.

RE: How do you have Ruby and Rails installed? - Added by Andy L over 9 years ago

I used BitNami to install Redmine .7 beta.

I got the whole system running in about 5 minutes, and the beauty is I don't even need to know exactly what stack components were installed.

It was even easier than using apt-get. Check it out!

RE: How do you have Ruby and Rails installed? - Added by John Z over 9 years ago

I just wanted to report back on this issue. I never found a solution to my home-grown, but dying Redmine instance.

So I looked into the BitNami option (http://bitnami.org/stack/redmine) and fell in love. Cross platform installer that knows if I'm running X or not (though you seem to lose some of the options if you are not running X on Linux). It gives you EVERYTHING you need to run Redmine.

We've had it up for a week without any issues. I'm going to expand its usage and we'll see how it runs. But so far so good. Now if the author would just update it to the latest Redmine version :-)

RE: How do you have Ruby and Rails installed? - Added by Andy L over 9 years ago

To @JohnZ -

I found that the BitNami install went perfectly.

But for me the Bitnami control scripts didn't work properly for restarting Redmine/MySql/Apache/Subversion. (I am running on Ubuntu 7.10)

Did you find the same thing??

It's easy enough to rewrite the scripts - but an annoyance...

Aside from the restarting issue - my experience with the bitnami installer has been great!

- Andy

(1-10/10)