Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Incomplete
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Rails WAR Deployment
-
Labels:None
-
Environment:Glassfish running on Mac OS X
-
Number of attachments :
Description
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
Sorry. My comment was for a different issue.