I’m new to this list, so hello everyone. I’m LÃ¡szlÃ³ BÃ¡csi from Hungary,
where I work for Virgo Systems as the lead ruby developer.
I have a problem that have bugged me for I while. The question is how to
deploy a rails application on the jruby platform as easily as it would
with capistrano on MRI. We need to deploy to Tomcat so packaging the
application in a war file and copying it to the server is no problem,
what about other deployment tasks like db migrations, putting up a
maintenance page, working with assets, etc.
If we used capistrano we would need a complete ruby environment on every
server with all the gems the application needs. And preferably this
be a jruby environment because of compatibility issues. This seems like
wrong approach here, because we already have the application with all of
dependencies bundled in a war.
I see two approaches that could work:
- Implement all of the special deployment tasks in a designated
An action (or several actions) on this controller would be called
the war file is deployed. This could solve the db migration issues but
still wouldn’t be a good solution for tasks which need to do stuff on
the application servers. But there might be a way to call this action on
specific servers. I think this could work and maybe all of this could be
packaged in a Rails Engine (which is a new feature in Rails 2.3)
- Use one of the deployment solutions from the Java world
I have no clue about this but it might be that there are great
for this kind of stuff in the Java world. I hear people talking about
and the pieces I’ve put together from these conversations make me think
it could solve this issue. But that would need a lot of work.
What automating tools do you use for Rails deployment on the JRuby