Nullcreations.net | Ramblings & Photography of Jerrett Taylor

Rails Deployment

January 14th, 2008 | 0 comments

There is a post on RubyInside today that spawned quite the cascade of comments, on the topic of deploying rails.

While a lot to wade through, there are some interesting comments buried in there. I still find it strange that everyone is clamoring for a solution, while ignoring one that exists because it's done by a commercial company.

LiteSpeed is not perfect, but it does what is being asked for, the "just upload it" route. You tell it where your files are, and it works. It manages your processes (No need for monit, GOD, etc.), it watches your memory, it kills process that are no longer being used and spawns more when it needs.

While commercial, there is a free version which is more than sufficient for anything you may need unless you have a large amount of traffic, in which case you are likely making money. It's unlikely that you would reach the concurrent request limits for free, because your rails app would consume to many resources on a single box.

That said, having a mod_ruby that works would be absolutely fantastic. I hope somebody picks it up, I'm not trying to say LiteSpeed is The Only Way, just that I find it strange to be dismissed because - "it's not open source!".

Of even more interest though, Ezra posted a comment:

I'm just going to say that Rubinius has support(as of today!) for running multiple instances of it's VM within one process, each VM on it's own native thread, each VM running many ruby green threads. Each VM has it's own heap and so each VM could load different apps that wouldn't interfere with each other. We have plans for a mod_rubinius for apache that takes full advantage of this feature. Stay tuned ;)

So perhaps the answer everyone is seeking is coming soon to an Apache near you!

0 Comments

Musings

04.14.08

Trying to decide where to travel to? Wikitravel.org Random Page has the answers!

02.23.08

sd's embedded_actions has a new home on github

02.18.08

Very cool.

02.17.08

Open Source Food? - looks like a nice recipe site!

02.15.08

For anyone using capistrano with more than one target for deployment (staging, production), check out cap multistage

02.15.08

Wow, I just realized how bad my code blocks break my blog in safari. I should fix that!

01.27.08

Mike has created another nice netbeans theme - go check it out, if you use netbeans!

01.21.08

A handy tool, Rubular is a web based regex editor

01.15.08

Dan put together a sweet code editor plugin for mce with syntax highlighting etc.

12.13.07

On OSX? Add RubyImporter to Spotlight and search your source!

12.04.07

sd has released a new version of embedded_actions

11.27.07

RejectConf videos are online thanks to confreaks!

11.19.07

Good news - we upgraded a project at work to rails 2.0 rc2 and the speed to run specs dropped from 30-35 seconds to 10-15 seconds!

11.08.07

Eigenclass.org has a great big list of Ruby 1.9 changes that is being kept up to date!

11.06.07

Rein is working on a trac replacement in ruby called eskort , and it looks cool. More info on his goals