Restart App from code
Hello,
I'm using this code to restart the application without restarting the server
<!--- onapplicationstart --->
<cffunction name="onApplicationStart" returnType="boolean" output="true">
<cfoutput>restarted #now()#</cfoutput>
<cfdump var="#this.ormsettings#">
<cfreturn true>
</cffunction>
<!--- onrequeststart --->
<cffunction name="onRequestStart" access="public" output="true">
<cfargument name="Page" type="string" required="true" />
<cfif StructKeyExists(URL,"app-restart")>
<cfset OnApplicationStart()>
<cfreturn true>
</cfif>
</cffunction>
Using a url like this index.htm?app-restart=1
Still, tables aren't created from the orm procedure (I'm using dropcreate as dbcreate orm setting). Is there something wrong within the code?
Thank you very much
