Make it easier to perform database migrations using Warbler.
------------------------------------------------------------

                 Key: JRUBY-3804
                 URL: http://jira.codehaus.org/browse/JRUBY-3804
             Project: JRuby
          Issue Type: Improvement
          Components: Rails WAR Deployment
         Environment: Glassfish running on Mac OS X
            Reporter: Christopher Saunders


In order to perform database migrations on my machine I needed to do the 
following steps:
In the rails directory run "warble config"
add the following to the warble.rb file
  config.includes = FileList["db/**/*", "Rakefile"]

run warbler

after deploying the war file going into the application/WEB-INF running a 
script that does the following:

echo "Setting gem home to \'`pwd`\'"
export GEM_HOME=`pwd`/gems/gems
echo "Running migration: $1"
java -jar ./lib/jruby-complete-* -rlib/derbyclient.jar -S rake $1

Where $1 is the migration you want to perform, such as db:migrate

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to