webdeploy-3.5

.net WebDeploy is there any way to run command/script on the target machine after deploy

不想你离开。 提交于 2019-12-12 03:43:55
问题 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? 回答1: 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 来源: https://stackoverflow.com/questions/39454497/net

Generated *.SourceManifest doesn't include additional runCommand WebDeploy settings

妖精的绣舞 提交于 2019-12-12 02:52:21
问题 I'm trying to configure a runCommand to wait more than the default value of 1 second to finish. This is a sample pubxml code: <ItemGroup> <MsDeploySourceManifest Include="runCommand"> <waitInterval>60000</waitInterval> <path>"C:\Company\install-services.cmd"</path> </MsDeploySourceManifest> </ItemGroup> When I start a deployment, it successfully creates a *.SourceManifest.xml file in the temp package directory, but it only includes the path: <runCommand path=""C:\Company\install-services.cmd"

Automatically execute migrations when publishing ASP.NET Core app

℡╲_俬逩灬. 提交于 2019-11-29 02:19:33
Question Is there any ways that I can automatically execute the migration code (EF 7) when publishing my ASP 5 application to IIS using Web Deploy? I Tried in the project.json , I added this code in the scripts : "scripts" : { "prepublish": ["dnx ef database update", "other commands..."], "postpublish": ["dnx ef database update"] } none worked for me. Additional Info I followed the instructions on this link to deploy my ASP 5 RC-1 web application to IIS using web deploy. After doing so in the publish settings I have: Using web deploy in ASP 4 applications I have additional database options:

Automatically execute migrations when publishing ASP.NET Core app

跟風遠走 提交于 2019-11-27 16:39:57
问题 Question Is there any ways that I can automatically execute the migration code (EF 7) when publishing my ASP 5 application to IIS using Web Deploy? I Tried in the project.json , I added this code in the scripts : "scripts" : { "prepublish": ["dnx ef database update", "other commands..."], "postpublish": ["dnx ef database update"] } none worked for me. Additional Info I followed the instructions on this link to deploy my ASP 5 RC-1 web application to IIS using web deploy. After doing so in the