Jump to content

Recommended Posts

Posted

Hi there,

 

Everything is working just fine on Lily, but there's a little inconvenient when I try to update my app because sometimes some files still in use by IIS AppPool as it is still running and I can't update it. In my dev machine I have to stop the IIS pool to sucessfully update it...

 

Is there any way I can do to when this happens on Lily?

 

Thanks!

Posted

Yes you can actually. I just implemented a way to control these.

 

In your home folder (the folder that contains the public_html folder, don't put it in public_html), create an empty file called stopapp.txt. Wait up to 5 minutes for the app pool to stop. You'll know when it does because your site will start showing a 503 error.

 

To start it, create a startapp.txt instead.

 

The start and stop work regardless of why it was started/stopped, so you can also use startapp.txt to restart your app pool if it crashed from bad code :)

Guest
This topic is now closed to further replies.
×
×
  • Create New...