Export (0) Print
Expand All

Web Deploy webApp Provider

Updated: November 2, 2010

Applies To: Windows Server 2008 R2

webApp

The webApp provider synchronizes a site on IIS Express to an IIS 7 Web server or vice versa.

Example

msdeploy -verb:sync -source:webApp="wordpress" -dest:auto,computername=server1 -apphostconfigdir=c:\users\user1\documents\iisexpress\config -webserverdir="c:\program files (x86)\microsoft webmatrix"

The webApp provider synchronizes a site on IIS Express to an IIS 7 Web server, or synchronizes a site on an IIS 7 Web server to a computer that is running IIS Express. This provider is used by WebMatrix for publishing sites to a Web hosting provider or for downloading sites from the Web hosting provider.

noteNote
The webApp provider applies only to Web Deploy 2.0 and later versions.

In a sync operation, use the appHostConfigDir operation setting to specify the path of the ApplicationHost.config file for the current instance of IIS Express. Use the webServerDir operation setting to specify the path of the program files for the current instance of IIS Express. For more information, see Web Deploy Operation Settings.

1) Synchronize a WordPress site that is running on IIS Express to the IIS server on WebServer1.

msdeploy -verb:sync -source:webApp="wordpress" -dest:auto,computername=WebServer1 -apphostconfigdir=c:\users\user1\documents\iisexpress\config -webserverdir="c:\program files (x86)\microsoft webmatrix"

2) Synchronize a WordPress site from IIS on the computer WebServer1 to IIS Express on a local computer.

msdeploy -verb:sync -source:webApp="wordpress",computername=WebServer1 -dest:auto-apphostconfigdir=c:\users\user1\documents\iisexpress\config -webserverdir="c:\program files (x86)\microsoft webmatrix"

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft