Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run .bat file on server after web deploy publish

I am using Web Deploy for publishing an ASP.NET MVCwebsite in Visual Studio 2010.
Is there any way to run a .bat file on server after this publish automatically?

like image 515
Jacob Jedryszek Avatar asked Aug 30 '12 11:08

Jacob Jedryszek


1 Answers

See: Post Publish Events

You could create a Windows Service that runs on your IIS box and uses the FileSystemWatcher to monitor changes to your web root path and when it detects a file change run a batch file.

like image 54
eth0 Avatar answered Oct 13 '22 07:10

eth0