[英]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.