Affects Version/s: None
Fix Version/s: None
Component/s: Rails WAR Deployment
Environment:Glassfish running on Mac OS X
Number of attachments :
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"]
after deploying the war file going into the application/WEB-INF running a script that does the following:
echo "Setting gem home to \'`pwd`\'"
echo "Running migration: $1"
jar ./lib/jruby-complete* -rlib/derbyclient.jar -S rake $1
Where $1 is the migration you want to perform, such as db:migrate