Use msdeploy to deploy a website

Source: Internet
Author: User
Tags import database

In Visual Studio 2010, a new method is provided to deploy websites. Msdeploy makes it easier to deploy websites on multiple servers. It will first package the Project, which contains the configuration information and website files.
To configure a package, right-click the project and select package/publish settings.

The package/publish property page of the Project is displayed.

Select the include all databases configured in deploy SQL tab. The database structure or/and data are packaged for deployment.
When you select include all IIS settings for this web projects as configured in IIS manager, the IIS settings are also packaged and can be restored to the IIS of the target server as is during deployment.
The format entered in the IIS web site/Application name to be used on destination server space is "site name/ApplicationProgramOr virtual path name ".
Switch to the deploy SQL page to configure the database deployment.

You can import database configurations from web. config or manually add database configurations.
After selecting a configuration, you can modify its database connection string to obtain information from an existing database or write a script to configure the target database.
During deployment, right-click the project and select publish. The following window is displayed.

Publish method: Select msdeploy publish, and service URL select the address provided by the target server or host supplier. In this way, you can quickly publish.
Another method is to import the packaged ZIP file to IIS.
Right-click the project and click Create package, select a site in IIS, and click Import server or site package in the Action window on the right,

Select the generated ZIP file. In the following interface, you can select the file or settings to be imported.

This completes the deployment. This method is more convenient than in the past when there are many servers.

 

This article applies to Visual Studio 2010

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.