简体   繁体   English

将应用程序部署到远程IIS服务器

[英]Deploying application to remote IIS server

I want to automate building and deploying process. 我想自动化构建和部署过程。

I managed to create a build definition on VSO and when I check in code build starts, tests run, and as an end product a folder is created which contains all my projects (asp.net web app and class libraries from solution) and bin folders from these projects. 我设法在VSO上创建了一个构建定义,当我检入代码构建开始,测试运行时,并且作为最终产品创建了一个文件夹,其中包含我的所有项目(asp.net Web应用程序和解决方案中的类库)和bin文件夹从这些项目。

But what I need is to get the same structure I get when I publish my web project from visual studio through publish feature (bin, Content, Scripts, Views, Web.config). 但是我需要的是获得与我通过发布功能(容器,内容,脚本,视图,Web.config)从Visual Studio发布Web项目时获得的结构相同的结构。 And then copy all that to remote folder through ftp. 然后通过ftp将所有内容复制到远程文件夹。

How can I do this? 我怎样才能做到这一点?

You can look into the release management capabilities of Team Services (fka VSO) to your remote folder. 您可以查看Team Services(fka VSO)对远程文件夹的发布管理功能

You can add a task to copy a file to a remote windows machine, do an Azure file copy, execute a powershell script and much more. 您可以添加任务以将文件复制到远程Windows计算机,执行Azure文件复制,执行Powershell脚本等等。

I've setup all the deployment setting through the project > deploy and get it all working locally direct from VS. 我已经通过项目>部署设置了所有部署设置,并直接从VS使其全部在本地运行。 Then reference the build configuration through the msbuild switch on VSO. 然后通过VSO上的msbuild开关引用构建配置。 Using MSdeploy is by far the fastest, however it does support FTP. 到目前为止,使用MSdeploy最快,但是它确实支持FTP。

[ Visual Studio Online continuous deployment to Azure Website with publish profile [ Visual Studio Online通过发布配置文件连续部署到Azure网站

I've used it to deploy to a 3rd party hosting with on-site agent. 我已经使用它来部署到具有现场代理的第三方托管。

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

相关问题 将应用程序部署到IIS 7服务器突然不起作用 - Deploying application to IIS 7 server suddenly does not work 在 IIS 上部署 web 应用程序 5 - Deploying a web application on the IIS 5 在IIS服务器上部署ASP.NET MVC应用程序时出现问题 - Issue in deploying ASP.NET MVC Application on the IIS Server 无法访问IIS 7应用程序部署服务器上的MVC 4中的某些控制器 - unable to access Some Controller in MVC 4 on IIS 7 application Deploying server 将Asp.net应用程序部署到IIS服务器时出错 - Error while Deploying Asp.net application to IIS server 连接到远程iis服务器2012以远程调试Web应用程序 - Connecting to a remote iis server 2012 to debug a web application remotely 在服务器上部署应用程序时出错 - Error deploying application on server 如何启用远程 Web 服务器中 IIS 中部署的 MVC 应用程序的远程调试 - How to enable remote debugging of an MVC application which was deployed in IIS in remote web server 将我的asp.net MVC Web应用程序部署到IIS7后,无法将其连接到SQL Server - Unable to connect my asp.net mvc web application to the sql server after deploying it to IIS7 在 IIS7 上部署 MVC3 应用程序总是返回 Http 500 - 内部服务器错误 - Deploying an MVC3 application on IIS7 always returns Http 500 - Internal Server Error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM