← Tutti gli articoli

Web Deploy 2.0

09 febbraio 2011  · IIS 7 · Article  ·  344 visite

Use Web Deploy 2.0 on the client and server environenment.

Web Deploy 2.0

Or, download x86 / x64
 

 
 
  • Web Deployment Tool - Managed code framework that includes the public APIs and underlying engine. (This is the top-level node and cannot be removed.)
    • IIS Manager UI Module - UI module that allows users to perform a subset of deployment tasks, mainly packaging or deploying a Web site or app. Requires IIS 7.0 or IIS Remote Manager to be installed.
    • Remote Agent Service - An administrator-only service based on HTTP/HTTPS that allows server admins to connect and perform remote operations.
    • IIS 7.0 Deployment Handler - A handler that integrates with WMSVC and allows non-administrators or administrators to perform remote operations. Requires IIS 7.0 with WMSVC installed.
  • SERVER INSTALLATION (install all modules)
     

    1. Download the Web Deployment Tool from http://www.iis.net/.

    2. Open an administrative command prompt on Windows Server 2008, or a command prompt on Windows 2003.

    3. Change directory to the location of the setup file.

    4. Run the following command (where the port and URL are specified, please customize):
    msiexec /i <msi_filename> /passive ADDLOCAL=ALL LISTENURL=http://+:8080/MSDEPLOY2/

    5. Manually start the service by running the following command:
    net start msdepsvc
     
    or  start the Web Deployment Agent Service on the server:
     
     
    Set the automatic start in the services window or manually: sc config msdepsvc start=auto
     

    Starting the Remote Service after Installation

    The remote service will listen on http://+/MSDEPLOYAGENTSERVICE/ by default, or at whatever URL that you specified if you performed a custom installation.
     
     
     
     CLIENT CONFIGURATION
     
     DeploySite.bat
     
     
     
    :inputenv
    set ENV=
    set /P ENV=Type input: %=%
    if "%ENV%"=="" goto inputenv
    :inputpassword
    set PASSWORD=
    set /P PASSWORD=Type input: %=%
    if "%PASSWORD%"=="" goto inputpassword
    echo Your Environenment was: %ENV%
    echo Your password was: %PASSWORD%
    rem PAUSE
    rem goto :EOF
    REM deploy.bat produzione password
    @echo off
    if not %ENV%==produzione goto TEST
    echo Deploying to https://production
    "%ProgramFiles%\IIS\Microsoft Web Deploy\msdeploy.exe"   -verb:sync  -skip:File=Web.config -skip:File=global.asa -source:contentPath=c:\PrecompiledWeb\Web   -dest:contentPath=C:\inetpub\wwwroot\MyWeb,computerName=WebServerName,username=giovanni.maragna,password=%2  -enableRule:DoNotDeleteRule >   C:\temp\DeploymentProductionLog.txt
    echo view file C:\temp\DeploymentProduction.txt
    goto :EOF
    :TEST
    echo Deploying to https://test ...
    "%ProgramFiles%\IIS\Microsoft Web Deploy\msdeploy.exe"   -verb:sync  -skip:File=Web.config -skip:File=global.asa -source:contentPath=c:\PrecompiledWeb\Web   -dest:contentPath=C:\inetpub\wwwroot\MyWeb,computerName=WebServerName,username=giovanni.maragna,password=%PASSWORD%  -enableRule:DoNotDeleteRule >   C:\temp\DeploymentTestLog.txt
    echo view file C:\temp\DeploymentTest.txt
    

    The previous scripts:
    • Skips the override of Web.config and global.asa files
    • Enable the rule DoNotDeleteRule (the deployment process doesn't delete server folder contents)