Post on 29-Aug-2014
description
transcript
WebDeploy
What is WebDeploy?
The one-click webapp deployment solutionThe one few-click webapp deployment solution
The Players
On the Server...
HTTP://WWW.IIS.NET/
Download / Install on IIS
Install on IIS (take 2)
dism /online /enable-feature /featurename:IIS-WebServerRoledism /online /enable-feature /featurename:IIS-WebServerManagementToolsdism /online /enable-feature /featurename:IIS-ManagementServiceReg Add HKLM\Software\Microsoft\WebManagement\Server /V EnableRemoteManagement /T REG_DWORD /D 1net start wmsvcsc config wmsvc start= auto
http://forums.iis.net/t/1171432.aspx
Installed to: %programfiles%\IIS\Microsoft Web
Deploy
http://technet.microsoft.com/en-us/library/dd569059(WS.10).aspx
New IIS functionality...
New Services…//Stop the Services• net stop msdepsvc• net stop WMSvc
//Change the Service Start Mode from Manual to Auto• sc config msdepsvc start=auto• Sc config wmsvc start=auto
//Restart the Services• net start msdepsvc• net start wmsvc
Check whether svc listening...SET %PATH%=%PATH + ‘c:\Program Files\IIS\Microsoft Web Deploy’msdeploy -verbose -debug -verb:dump -source:apphostconfig,wmsvc=xacts0 ,authtype=Basic ,userName=XACT\Sky ,password=passw0rd
Back at the ranch...
...on your trusty dev station...
Create a WebSite to Deploy
Web.Config Transformations
http://msdn.microsoft.com/en-us/library/dd465326.aspx
MSBuild {ProjName}.csproj /t:TransformWebConfig /p:Configuration=Release
Package the website
The Resulting Package
...Back at the Server...
Import Package into IIS
The Installed Website
...back at your dev station...
Installing Remotely
How the heck did it get thru?!
Setting up Permissions
Observations (Q1 2011)
Benefits: Continuous Integration “The Future” (Built in, etc.)
Considerations: OOTB, only available to WebSites Requires asking for IIS configuration… Can’t do configSource=“…” WCT done at Package Time, not Install Time
Do I need Visual Studio?
http://ctt.codeplex.com/configSource = #@!!!
configSource = deal breaker?
http://bit.ly/ekVVdK
So: your next deployment…
Links
Google.
WebDeploy on IIS 6 ??
A little research helps: How do I setup WebDeploy on Windows
2003 / IIS6? - Stack Overflow http://bit.ly/eYHj6j