Forum: JRuby Re: Re: rake db:migrate script in Jruby

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Jay McGaffigan (Guest)
on 2009-02-26 03:45
(Received via mailing list)

<link media="all" type="text/css"
href="/webmail/static/deg/css/wysiwyg-3933289048.css" rel="stylesheet">
We have multiple rails apps that share teh models directory (sym
links).<br><br>Our strategy was : Create on migration that build all the
tables before we deployed.<br>Once we deployed (which we now are)
<br>Migration is managed under a change control process in which we run
manual mysql scripts to do the migration (after extensive testing of
course)<br><br>Jay<br><br><br>Feb 25, 2009 08:38:09 PM, <a
href="mailto:removed_email_address@domain.invalid" class="parsedEmail"
target="_blank">removed_email_address@domain.invalid</a> wrote:<br><blockquote
style="border-left: 3px solid rgb(102, 153, 204);">I'm manually running
the SQL. Kind of sucks but I don't make that many<br>schema
changes.<br><br>What's the ideal solution? HTTP action? A remote
console?<br><br>Ikai<br><br><br>On 2/25/09 5:01 PM, "Dave Ray" &lt;<a
href="mailto:removed_email_address@domain.invalid" target="_blank" 
parsedEmail">removed_email_address@domain.invalid</a>&gt; wrote:<br><br>&gt; 
<br>&gt; There was a very similar question (and an answer) earlier this
month:<br>&gt; <br>&gt;     <a
href="" class="parsedLink"
<br>&gt; Since this has come up twice now and was definitely a point of
confusion<br>&gt; when I was deploying a JRuby/Rails app, it would be
cool if there was<br>&gt; some official guidance on the Wiki or
something about the "right" way to<br>&gt; deploy on app servers where
you have minimal control.<br>&gt; <br>&gt; In my case, I just ended up
installing JRuby on the server. This was<br>&gt; over the phone with an
admin because the server was remote and behind a<br>&gt; firewall. It
felt like a pretty kludgy solution and definitely didn't<br>&gt; help me
look like I knew what I was doing, which I didn't. :)<br>&gt; <br>&gt;
Dave<br>&gt; <br>&gt; AD wrote:<br>&gt;&gt; Hello,<br>&gt;&gt;
<br>&gt;&gt;  We are working on some deployment scripts for our
JRuby/Rails<br>&gt;&gt; application.  We use warble to deploy wars into
tomcat on our app<br>&gt;&gt; servers.  Since we wont have a local copy
of Jruby on the app servers<br>&gt;&gt; is there an easy way to run a
rake db:migrate as part of the<br>&gt;&gt; deployment process?  It would
be easiest if we can run this as a jar<br>&gt;&gt; file somehow but
wasnt sure what other people are doing here.<br>&gt;&gt; <br>&gt;&gt;
Thx<br>&gt;&gt; Adam<br>&gt;&gt; <br>&gt;&gt;
To unsubscribe from this list, please visit:<br>&gt;&gt; <br>&gt;&gt;
<a href="" class="parsedLink"
<br>&gt;&gt; <br>&gt; <br>&gt;
To unsubscribe from this list, please visit:<br>&gt; <br>&gt;     <a
href="" class="parsedLink"
unsubscribe from this list, please visit:<br><br>    <a
href="" class="parsedLink"

To unsubscribe from this list, please visit:
AD (Guest)
on 2009-02-26 07:31
(Received via mailing list)
is there a way to turn the rake db:migrate into a text output of mysql
command to capture in a deploy script ?

On Wed, Feb 25, 2009 at 8:42 PM, Jay McGaffigan
<removed_email_address@domain.invalid> wrote:
> On 2/25/09 5:01 PM, "Dave Ray" <removed_email_address@domain.invalid> wrote:
>> deploy on app servers where you have minimal control.
>>> ---------------------------------------------------------------------
> unsubscribe from this list, please visit:

To unsubscribe from this list, please visit:
László Bácsi (Guest)
on 2009-02-26 10:53
(Received via mailing list)

we've struggled the same problem in Virgo, and I've come up with a
Check out It has no
documentation yet, so here's the deploy script I use with it: This has some additional goodness for copying
static files over and linking shared directories.

JRecipes introduces a new deploy strategy :war_file which builds a war
your application locally and puts it into your release_path. For
server it supports tomcat and takes care of restarting it and copying
war file into the webapps directory. I would welcome if someone with
experience with other app servers forked the project and implemented
for that.

This topic is locked and can not be replied to.