简体   繁体   中英

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.

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). And then copy all that to remote folder through ftp.

How can I do this?

You can look into the release management capabilities of Team Services (fka VSO) to your remote folder.

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.

I've setup all the deployment setting through the project > deploy and get it all working locally direct from VS. Then reference the build configuration through the msbuild switch on VSO. Using MSdeploy is by far the fastest, however it does support FTP.

[ Visual Studio Online continuous deployment to Azure Website with publish profile

I've used it to deploy to a 3rd party hosting with on-site agent.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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