Temporary file upload location in Asp.Net MVC web deploy -
I use web deployment to publish "Publish" of Visual Studio 2013 and Web Asp.Net MVC 5 website . However, when I update my website, it will not work during upload. I am looking for a way to reduce website downtime during the update. The website is running in VPS and I have full access to it. A solution coming to my mind is to configure web deployment to be uploaded in a temporary folder and after the upload is complete, new files should be replaced. This update will make a few seconds at the top. I can do it manually, but this is not a great way to update someone's website.
PS: Maybe there are better ways to update the website but so far I like web deployment. For example, it is very fast compared to FTP.
One of the most interesting things I have seen is that two websites are running at only one of them . After the upload completes, you disable the active, and you can enable whatever you have uploaded.
This works fine if both are in the same application pool and if you want to work with session too.
I have never done it like this, in fact it seems a bit complicated for the shortest time, but this is the only way.
Comments
Post a Comment