86
WEB DEPLOY Larry Nung

Web deploy

Embed Size (px)

Citation preview

Page 1: Web deploy

WEB DEPLOYLarry Nung

Page 2: Web deploy

AGENDAIntroductionInstallationSettingExport package through IIS ManagerImport Package through IIS ManagerAutomatic BackupsUse Visual Studio to publish with Web DeployUse MsBuild to publish with Web DeployUse Visual Studio to generate Web Deploy packageUse MsBuild to generate Web Deploy packageReferenceQ & A 2

Page 3: Web deploy

INTRODUCTION3

Page 4: Web deploy

INTRODUCTION An extensible client-server tool for syncing

content and configuration to IIS Simplifies deployment of Web applications

and Web sites to IIS servers

4

Page 5: Web deploy

FEATURE Seamless integration with IIS Manager (IIS7 and

above), Visual Studio (2010 and above)for creating packages and deploying them onto a machine, both locally and remotely.

Integration with WebMatrix for deploying and downloading web applications.

Seamless integration with the Web Platform Installer to install community web applications simply and easily.

Web application packaging: Ability to package a Web application or an entire site,

including the associated databases. Ability to package ACLs, COM, GAC and registry settings. Supports both live servers and zipped packages as a

source or destination.5

Page 6: Web deploy

FEATURE Web application deployment:

Administrative privileges are not required in order to deploy Web applications.

Ability to add powerful parameters to change text in files when they are deployed (such as prompting to replace a connection string when deploying from QA to staging environments).

Integration with the IIS Web Management Service (WMSVC) for remote deployment by non-administrators.

Server administrators have granular control over the operations that can be performed and can delegate tasks to non-administrators.

Web server migration and synchronization: Ability to synchronize or migrate the entire Web server, a Web site

or application. Synchronizes only the data that has changed. Ability to detect missing dependencies during synchronization. Automatically gathers content, IIS configuration, SSL certificates

and ASP.NET configuration when you sync a Web site.6

Page 7: Web deploy

FEATURE Automatic backup of Web Sites before

making any changes. Administrator can configure Web Deploy such

that it creates and store backup of websites on the server.

End users can directly restore their websites without admins involvement.

In addition to the IIS Manager, Visual Studio 10, Web Matrix tasks can be performed using the command-line, PowerShell Cmdlets or public APIs.

7

Page 8: Web deploy

HOW DOES IT WORK?

8

Page 9: Web deploy

HOW DOES IT WORK?

9

Page 10: Web deploy

PROVIDERS Providers process specific source or

destination data for Web Deploy

10

Page 11: Web deploy

PROVIDERS Web Deploy appHostConfig Provider Web Deploy appHostSchema Provider Web Deploy appPoolConfig Provider Web Deploy appPoolEnable32Bit Provider Web Deploy appPoolNetFx Provider Web Deploy appPoolPipeline Provider Web Deploy archiveDir Provider Web Deploy auto Provider Web Deploy cert Provider

11

Page 12: Web deploy

PROVIDERS Web Deploy comObject32 Provider Web Deploy comObject64 Provider Web Deploy contentPath Provider Web Deploy createApp Provider Web Deploy dbFullSql Provider Web Deploy dbMySql Provider Web Deploy dbSqlite Provider Web Deploy dirPath Provider Web Deploy fcgiExtConfig Provider Web Deploy filePath Provider Web Deploy gacAssembly Provider Web Deploy gacInstall Provider

12

Page 13: Web deploy

PROVIDERS Web Deploy iisApp Provider Web Deploy machineConfig32 Provider Web Deploy machineConfig64 Provider Web Deploy manifest Provider Web Deploy metaKey Provider Web Deploy package Provider Web Deploy recycleApp Provider Web Deploy regKey Provider Web Deploy regValue Provider Web Deploy rootWebConfig32 Provider Web Deploy rootWebConfig64 Provider Web Deploy runCommand Provider

13

Page 15: Web deploy

OPERATIONS dump

Returns information about a specified source object

sync Synchronizes data between a source and a

destination delete

Deletes the objects specified by the destination argument

GetDependencies Returns dependencies on features that Web

Deploy cannot synchronize and that you may want to install separately on the destination

15

Page 16: Web deploy

OPERATIONS GetSystemInfo

Returns system information

16

Page 17: Web deploy

RULES AboFilter  AnonymousUser  ApplicationExistsRule  AppPoolIdentity  AppRootNormalize  BlockHarmfulDeleteOperations  BlockUnsupportedDeleteOperations  ClassicAppPoolProtectRule  CreateApplicationRule  CrossPlatformRule 

17

Page 18: Web deploy

RULES DependencyCheckAppPoolExists  DependencyCheckFailOnError  DependencyCheckFailOnWarning  DependencyCheckInUse  DoNotDeleteRule  EnvironmentVariableNormalize  IgnoreFileLastWriteTime  IISConfigFrom64To32  MetakeyToIIS6  Parameterization 

18

Page 19: Web deploy

RULES SchemaSection  SkipInvalidSource  SkipNewerFilesRule  SkipUNC  SyncGeneral  SyncXP  UrlScanSkipIncompat  WarnForEncryptedDataRule  XpIsapis 

19

Page 20: Web deploy

INSTALLATION20

Page 21: Web deploy

INSTALLATION

21

Page 22: Web deploy

INSTALLATION

22

Page 23: Web deploy

INSTALLATION

Page 24: Web deploy

INSTALLATION

Page 25: Web deploy

INSTALLATION

Page 26: Web deploy

INSTALLATION

26

Page 27: Web deploy

SETTING27

Page 28: Web deploy

IIS MANAGER PERMISSION

28

Page 29: Web deploy

IIS MANAGER PERMISSION

29

Page 30: Web deploy

IIS MANAGER PERMISSION

30

Page 31: Web deploy

IIS MANAGER PERMISSION

31

Page 32: Web deploy

MANAGEMENT SERVICE

32

Page 33: Web deploy

MANAGEMENT SERVICE

33

Page 34: Web deploy

EXPORT PACKAGE THROUGH IIS MANAGER

34

Page 35: Web deploy

EXPORT PACKAGE THROUGH IIS MANAGER

35

Page 36: Web deploy

EXPORT PACKAGE THROUGH IIS MANAGER

36

Page 37: Web deploy

EXPORT PACKAGE THROUGH IIS MANAGER

37

Page 38: Web deploy

EXPORT PACKAGE

38

Page 39: Web deploy

EXPORT PACKAGE

39

Page 40: Web deploy

EXPORT PACKAGE THROUGH IIS MANAGER

40

Page 41: Web deploy

EXPORT PACKAGE THROUGH IIS MANAGER

41

Page 42: Web deploy

IMPORT PACKAGE THROUGH IIS MANAGER

42

Page 43: Web deploy

IMPORT PACKAGE THROUGH IIS MANAGER

43

Page 44: Web deploy

IMPORT PACKAGE THROUGH IIS MANAGER

44

Page 45: Web deploy

IMPORT PACKAGE THROUGH IIS MANAGER

45

Page 46: Web deploy

IMPORT PACKAGE THROUGH IIS MANAGER

46

Page 47: Web deploy

IMPORT PACKAGE THROUGH IIS MANAGER

47

Page 48: Web deploy

IMPORT PACKAGE THROUGH IIS MANAGER

48

Page 49: Web deploy

IMPORT PACKAGE THROUGH IIS MANAGER

49

Page 50: Web deploy

IMPORT PACKAGE THROUGH IIS MANAGER

50

Page 51: Web deploy

IMPORT PACKAGE THROUGH IIS MANAGER

51

Page 52: Web deploy

AUTOMATIC BACKUPS52

Page 53: Web deploy

AUTOMATIC BACKUPS

53

Page 54: Web deploy

AUTOMATIC BACKUPS

54

Page 55: Web deploy

AUTOMATIC BACKUPS

55

Page 56: Web deploy

AUTOMATIC BACKUPS

56

Page 57: Web deploy

USE VISUAL STUDIO TO PUBLISH WITH WEB DEPLOY

57

Page 58: Web deploy

USE VISUAL STUDIO TO PUBLISH WITH WEB DEPLOY

58

Page 59: Web deploy

USE VISUAL STUDIO TO PUBLISH WITH WEB DEPLOY

59

Page 60: Web deploy

USE VISUAL STUDIO TO PUBLISH WITH WEB DEPLOY

60

Page 61: Web deploy

USE VISUAL STUDIO TO PUBLISH WITH WEB DEPLOY

61

Page 62: Web deploy

USE VISUAL STUDIO TO PUBLISH WITH WEB DEPLOY

62

Page 63: Web deploy

USE VISUAL STUDIO TO PUBLISH WITH WEB DEPLOY

63

Page 64: Web deploy

USE VISUAL STUDIO TO PUBLISH WITH WEB DEPLOY

64

Page 65: Web deploy

USE VISUAL STUDIO TO PUBLISH WITH WEB DEPLOY

65

Page 66: Web deploy

USE MSBUILD TO PUBLISH WITH WEB DEPLOY

66

Page 67: Web deploy

USE MSBUILD TO PUBLISH WITH WEB DEPLOY msbuild <ProjectFile|SolutionFile>

/p:Configuration=<Configuration>;Platform="<Platform>";DeployOnBuild=true;PublishProfile=<PublishProfile>;UserName=<UserName>;Password=<Password>;AllowUntrustedCertificate=True

67

Page 68: Web deploy

USE MSBUILD TO PUBLISH WITH WEB DEPLOY msbuild <ProjectFile|SolutionFile>

/p:Configuration=<Configuration>;Platform="<Platform>";DeployOnBuild=true;PublishProfile=<PublishProfile>;UserName=<UserName>;Password=<Password>;AllowUntrustedCertificate=True; EnableMSDeployAppOffline=true

68

Page 69: Web deploy

USE VISUAL STUDIO TO GENERATE WEB DEPLOY PACKAGE

69

Page 70: Web deploy

USE VISUAL STUDIO TO GENERATE WEB DEPLOY PACKAGE

70

Page 71: Web deploy

USE VISUAL STUDIO TO GENERATE WEB DEPLOY PACKAGE

71

Page 72: Web deploy

USE VISUAL STUDIO TO GENERATE WEB DEPLOY PACKAGE

72

Page 73: Web deploy

USE VISUAL STUDIO TO GENERATE WEB DEPLOY PACKAGE

73

Page 74: Web deploy

USE VISUAL STUDIO TO GENERATE WEB DEPLOY PACKAGE

74

Page 75: Web deploy

USE VISUAL STUDIO TO PUBLISH WITH WEB DEPLOY

75

Page 76: Web deploy

USE VISUAL STUDIO TO PUBLISH WITH WEB DEPLOY

76

Page 77: Web deploy

USE VISUAL STUDIO TO PUBLISH WITH WEB DEPLOY

77

Page 78: Web deploy

USE MSBUILD TO GENERATE WEB DEPLOY PACKAGE

78

Page 79: Web deploy

USE MSBUILD TO GENERATE WEB DEPLOY PACKAGE msbuild <ProjectFile|SolutionFile>

/p:Configuration=<Configuration>;Platform="<Platform>";PackageLocation="<PackageLocation>" /t:package

79

Page 80: Web deploy

REFERENCE80

Page 81: Web deploy

REFERENCE Web Deploy 3.5 : The Official Microsoft IIS

Site https://www.iis.net/downloads/microsoft/web-dep

loy

The Will Will Web | 介紹好用工具: Web Deployment Tool 1.0 ( 附心得筆記 ) http://blog.miniasp.com/post/2009/11/23/Useful-t

ool-Web-Deployment-Tool.aspx

天空的垃圾場 : ASP.NET MVC - 使用 Web Deploy 佈署 MVC 應用程式到 IIS http://blog.sanc.idv.tw/2014/08/aspnet-web-depl

oymvciis.html

81

Page 82: Web deploy

REFERENCE CI Server 22 - 使用 Web Deployment Tool 部署網站 - iT 邦幫忙 :: 一起幫忙解決難題,拯救 IT 人的一天

http://ithelp.ithome.com.tw/articles/10108511

Using Web Deploy : The Official Microsoft IIS Site https://www.iis.net/learn/publish/using-web-deplo

y

Web Deployment Tool https://technet.microsoft.com/en-us/library/dd56

8996(v=ws.10).aspx82

Page 83: Web deploy

REFERENCE ScottGu's Blog - Automating Deployment

with Microsoft Web Deploy https://weblogs.asp.net/scottgu/automating-depl

oyment-with-microsoft-web-deploy

Web Deploy - Import Package | Level Up https://larrynung.github.io/2015/07/10/web-deplo

y-import-package/

Web Deploy - Export package | Level Up https://larrynung.github.io/2015/07/08/web-deplo

y-export-package/ 83

Page 84: Web deploy

REFERENCE Web Deploy - Synchronize IIS | Level Up

http://larrynung.github.io/2015/07/10/web-deploy-synchronize-iis/

Web Deploy - Automatic Backups | Level Up http://larrynung.github.io/2015/03/07/web-deploy

-automatic-backups/

84

Page 85: Web deploy

Q&A85

Page 86: Web deploy

QUESTION & ANSWER

86