130 likes | 214 Views
Deploying Web Sites, Applications & Web Services with Web Deploy. About Zoiner Tejada. Email me: ZoinerTejada@TejadaNET.com. Deployment with Web Deploy. From Visual Studio: Developers can create new applications that are hosted in AppFabric Developers can publish and debug applications
E N D
Deploying Web Sites, Applications & Web Services with Web Deploy
About Zoiner Tejada • Email me: ZoinerTejada@TejadaNET.com
Deployment with Web Deploy • From Visual Studio: • Developers can create new applications that are hosted in AppFabric • Developers can publish and debug applications • From IIS Manager: • Can refine application configurations and export packages • Can import packages to set up new machines • MSDeploy features • Can automate with Command Line
Installing Web Deploy • Web Deploy is free, 5 MB Download • Download from http://www.iis.net/ • Simple Install – Just use Complete option
What Gets Installed • Remote Agent Service • Relies on Web Management Service • Management Service Delegation • IIS 7 Deployment Handler https://myserver.com:8172/MSDeploy.axd • IIS Manager UI Module (shown later)
Enabling Remote Access • Ensure firewall has port 8172 open for TCP traffic. • Must enable Remote Connections (otherwise get 403 Forbidden error) using Management Service Feature at Server Level NOTE: This will enable remote access only for administrators. To enable for other users, you must configure Management Service Delegation.
Packaging within IIS Manager • Inside IIS Manager • Export at various levels: • Server • Web Site • Application
Useful Web Deploy Providers • appHostConfig • All of a website’s content, config and certificates. • Useful if you need to include bindings (e.g., net.pipe) • iisApp • All directory content and marks as application • dbFullSql • Deploys initial database from source script or connection string • package • Exports archive to a zip file.
Command Line & PowerShell • Installs to: %Program Files%\IIS\Microsoft Web Deploy (both 32 bit and 64 bit paths) • Command line: • msdeploy.exe -verb:sync -source:contentPath="Default Web Site" -dest:package=c:\DWS.zip • PowerShell: • Unfortunately, RTW version removed PS Support! You can use .NET API’s, see: http://blogs.iis.net/jamescoo/archive/2009/09/09/cool-msdeploy-powershell-scripts.aspx
DEMOS Creating, Importing & Exporting Packages • Packaging a Workflow Service with VS • One-Click Publish in VS • Deploying Database Data & Schema • Importing/Exporting with IIS Manager
E-mail me with questions: ZoinerTejada@TejadaNET.com Thank you!