Rake db:migrate script in Jruby


#1

Hello,

We are working on some deployment scripts for our JRuby/Rails
application. We use warble to deploy wars into tomcat on our app
servers. Since we wont have a local copy of Jruby on the app servers
is there an easy way to run a rake db:migrate as part of the
deployment process? It would be easiest if we can run this as a jar
file somehow but wasnt sure what other people are doing here.

Thx
Adam


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#2

Adam,

There was a very similar question (and an answer) earlier this month:

http://www.ruby-forum.com/topic/177738

Since this has come up twice now and was definitely a point of confusion
when I was deploying a JRuby/Rails app, it would be cool if there was
some official guidance on the Wiki or something about the “right” way to
deploy on app servers where you have minimal control.

In my case, I just ended up installing JRuby on the server. This was
over the phone with an admin because the server was remote and behind a
firewall. It felt like a pretty kludgy solution and definitely didn’t
help me look like I knew what I was doing, which I didn’t. :slight_smile:

Dave

AD wrote:

Adam


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#3

I’m manually running the SQL. Kind of sucks but I don’t make that many
schema changes.

What’s the ideal solution? HTTP action? A remote console?

Ikai

On 2/25/09 5:01 PM, “Dave Ray” removed_email_address@domain.invalid wrote:

We are working on some deployment scripts for our JRuby/Rails
To unsubscribe from this list, please visit:


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email