Web application auto update

I have a small web application (Mvc) that I need to update periodically (no ftp or other access).

I would like that from the page "Super Ultra Mega administratoratior" right in the application I could deploy the update process.

I know that this is not the best approach to security, but I can live with it, and I would like to avoid the constant service, which constantly uses ping for the new version, when it is not really necessary.

Now I think that you now have a Windows service with the correct write permissions credentials that can be called from a secure web page:

  • Stop iis service (optional)
  • download the latest version of the application via a secure url (zip file)
  • backup the old web application on the server in the directory (c: \ backups \ v1_01102010.zip)
  • unzip the downloaded zip file to the web application directory
  • restart iis
  • (ultimately able to return the process)

Does something like this already exist?

I saw a bunch of automatic updates for .net, mostly oriented to winform or desktop applications that seem too complicated for this simple process.

I do not need to write or modify the registry, but just automate the extraction of zip without user interaction.

+3
source share

Source: https://habr.com/ru/post/1728925/


All Articles