Boot Strapping your ColdFusion 9 ORM Application
Tags: Coldfusion, CFORM
ColdFusion 9 has given us something wonderful when it comes to the database, however maintaining the code to be able to just move it to another server and database isn't extremely easy when it comes to data.
Enter Boot Strapping.
I created a Video Tutorial to show what it is, and how to use it as well as benefiting from this in your application. This is also a precursor to ORMBootStrap on RIAForge, that is certainly very alpha and under development.
Anyway I hope you enjoy the Video.
-
Have you considered adding a url parameter that forces the application to refresh, instead of resetting the CF services every time you want to rebuild your database?
function onRequestStart(){
param name="url.reinit" default="false";
if (url.reinit){onApplicationStart();}
}
Then on your index.cfm (for demo/whatever purposes) you can just include a link to index.cfm?reinit=true and click it to start fresh.
Then you don't have to wait for the CF Services to restart.# Posted By Adam Tuttle | 12/2/09 8:13 PM -
Yes Adam I would under normal circumstances do that.
# Posted By Andrew Scott | 12/5/09 12:18 AM



TweetBacks