3 ms·
If you’re doing ASP.NET Core, you should be able to get away without restarting the IIS app pool. You can just create a `app_offline.htm` file, wait some time u
by Kwpolska 2y ago
If you’re doing ASP.NET Core, you should be able to get away without restarting the IIS app pool. You can just create a `app_offline.htm` file, wait some time until the process fully shuts down, deploy the new code, and finally remove the .htm file.
- Mossy9 2y agoInteresting, I did not know that. Thanks for the tip! That would require using configuration snapshots, which we have forgone now a simpler "load configs once on startup" (again, a small downtime now and then is no problem for us), but sounds worth checking out.
- Kwpolska 2y agoThis app_offline.htm trick does a full restart of the app. You just don’t need to talk to IIS to do it.