does anyone know how to get a site hosted on hoste...
# cfml-general
s
does anyone know how to get a site hosted on hostek (shared hosting) to recognize updated jars set in the application.cfc?
would calling
Copy code
<cfset onApplicationStart()>
be enough?
m
You can make a restart file with
<cfset ApplicationStop() />
in it
keep in mind that onApplicationStart() triggers things when the application starts. You would need to stop the app and restart it. I believe there is also a Cache clear in the Hostek admin section (at least on a windows server there is)
s
bingo!
g
@Scott Steinbeck Just a "side" - extra - since you mention calling onApplicationStart(); As @Mark Takata (Adobe) notes - to RESTART your application you need to call ApplicationStop(). onApplicationStart() - doesn't kill the app and start afresh. It JUST runs the onApplicationStart() function. So if you're not clearing caches etc in your onApplicationStart() - you're not getting a new app. Using ApplicationStop() - effectively kills the application - allowing for the very next request to run the whole "startup" process.