0

I have and .net/angular2 application, I'm publishing with WebDeploy. But when the publish finish I wanna run some command on the target machine like

npm install
npm run tsc

There is a way to do that?

jcmordan
  • 948
  • 12
  • 19

1 Answers1

2

You should be able to use the postSync argument:

msdeploy -verb:sync -source:contentPath="C:\Test1" -dest:contentPath="C:\Test2" -postSync:runcommand="c:\MyBatchFile.bat" 

https://technet.microsoft.com/en-us/library/dd569089(v=ws.10).aspx

chief7
  • 13,712
  • 14
  • 44
  • 74