简体   繁体   English

Visual Studio 中的 Web 部署和 FTP 部署有什么区别?

[英]What is the difference between Web deploy and FTP deploy in Visual Studio?

Recently I need to deploy our website into a QA environment.最近我需要将我们的网站部署到 QA 环境中。 I find that there are a lot of options in the deployment methods, including FTP and Web Deploy.我发现部署方法有很多选择,包括FTP和Web Deploy。 Before, I often used FTP deployment, which would copy all the website files from Visual Studio to the Server.之前,我经常使用FTP部署,它将所有网站文件从Visual Studio复制到服务器。

But this time, I noticed the Web deploy method.但这一次,我注意到了 Web 部署方法。 It also requires an account and password to upload the files.它还需要一个帐户和密码来上传文件。 But what is the difference between the two methods?但是这两种方法有什么区别呢?

在此处输入图片说明

Web deploy offers several benefits over FTP.与 FTP 相比,Web 部署提供了几个好处。 Here's the sum up:总结如下:

Web Deploy is faster than FTP. Web 部署比 FTP 快。 Web Deploy is secure. Web 部署是安全的。 Web Deploy can apply transforms during deployment. Web Deploy 可以在部署期间应用转换。 Web Deploy integrates with Visual Studio 2010 and WebMatrix. Web Deploy 与 Visual Studio 2010 和 WebMatrix 集成。 Web Deploy is extensible. Web 部署是可扩展的。

You can read the full comparison details here .您可以在此处阅读完整的比较详细信息。

I used both.我两个都用过。 In my opinion:在我看来:

Web deploy: take an example, when you have many users on the server, each user has one website, and web deploy is for each user with each website -> I can't deploy my website to another folder of other user's website, because I don't have permission. Web 部署:举个例子,当你的服务器上有很多用户时,每个用户有一个网站,而 Web 部署是针对每个用户的每个网站 -> 我无法将我的网站部署到其他用户网站的另一个文件夹中,因为我没有权限。

FTP: like when you are the administrator of a server, you can deploy directly. FTP:就像当你是服务器的管理员一样,你可以直接部署。 With FTP, you can open Windows Explorer , pass the link: fpt://domain.com → Enter → and then you can copy/paste seem like a local computer without FTP deploy in Visual Studio.使用 FTP,您可以打开Windows 资源管理器,通过链接:fpt://domain.com → Enter → 然后您可以复制/粘贴看起来像在 Visual Studio 中没有 FTP 部署的本地计算机。 But make sure the server can open an FTP connection here .但请确保服务器可以在此处打开 FTP 连接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM