mwhagedorn / migrate_war Goto Github PK
View Code? Open in Web Editor NEWA plugin which will create a database schema when deploying a rails app in a j2ee container (like cap deploy with migrations)
License: MIT License
A plugin which will create a database schema when deploying a rails app in a j2ee container (like cap deploy with migrations)
License: MIT License
MigrateWar ========== Simple Rails plugin to enable migrations to be run just after the rails application loads by using the ServletContext in a JRuby/Goldspike environment. This simulates the capistrano deploy and migrate workflow. Consists of a ServletContextListener which executes a migration when the context (i.e. the rails application) loads. SVN repository is at http://svn.silverchairsolutions.com/migrate_war Author: Mike Hagedorn ([email protected]) Installing the ContextListener ------------------------------ add the following to your web.xml. This will pull your code into the war file and make it execute on load <listener> <listener-class>org.jruby.webapp.MigratorContextListener</listener-class> </listener> <context-param> <param-name>command-file</param-name> <param-value>migrator.rb</param-value> <description>Run this file to execute an initial migration (for deployment to new platforms)</description> </context-param> Note that this will apply the schema to the production database, blowing away the previous contents, so back up your data before redeploying. If you what to disable the schema.rb stuff, you can either a) remove the listener definition from the web.xml or b) comment out the load comment in the migrator.rb file. Alternatively, you could expand the migrator.rb logic and import data from fixtures or something Copyright (c) 2008 Mike Hagedorn, http://www.silverchairsolutions.com, released under the MIT license
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.