在我的解决方案两个Web项目之一,该部署 [英] Two web project in my solution which one to deploy
本文介绍了在我的解决方案两个Web项目之一,该部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有结构化的这样一个解决方案。
I have a solution structured like this
Proj.Soln
Proj.Api.csproj
Proj.Web.csproj
我已经配置微软Azure与bitbucket.org。当我承诺通过GIT中到位桶,蔚蓝会挑这个和部署我的应用程序。我如何指定我想Proj.Web.csproj部署,而不是Proj.Api.csproj?
I have configured microsoft azure with bitbucket.org. When I commit through git to bitbucket, azure will pick this up and deploy my application. How do I specify that I want Proj.Web.csproj deployed and not Proj.Api.csproj?
推荐答案
我不知道是否有选择的项目的另一种方法,但有一些步骤来帮助你实现你的目标(注:这是测试和确认合作):
I am not sure whether there is another method to chose the project, but are some steps to help you achieve your goal (note: this is tested and confirmed to be working):
- 配置为您的网站的持续部署你的Git仓库(到位桶)
- 请最初的承诺,以确保配置是罚款和工作
- 通过FTP连接到您的网站(如果不确定如何,<一个href=\"http://blogs.msdn.com/b/avkashchauhan/archive/2012/06/19/windows-azure-website-uploading-downloading-files-over-ftp-and-collecting-diagnostics-logs.aspx\"相对=nofollow>这里是教程)
- 导航到FTP以下文件夹:
/网站/部署/工具
- 请注意,此文件夹可能被隐藏。如果是这样,只是在你的FTP客户端软件键入 - 在该文件夹,您将看到
deploy.cmd
文件 - 下载文件(
deploy.cmd
) - 打开文件,用你喜欢的文本编辑工具来编辑它
- 有两行
msbuild.exe
,指示该项目是构建(myProjectFolder的\\ MyProject.csproj
) - 更改正确的路径为其他的项目,不要忘了,其他项目也是在另一个文件夹(即
MyOtherProjectFolder \\ MyOtherProject.csproj
) - 保存
deploy.cmd
- 上传修改
deploy.cmd
并覆盖在/网站/部署/工具
- 承诺就到位桶原始源$ C $ C库 新的变化
- 有一杯咖啡,享受的结果!
- Configure the Continuous Deployment for your WebSite to your Git repository (BitBucket)
- Make initial commit to make sure the configuration is fine and working
- Connect to your site via FTP (if unsure how, here is tutorial)
- Navigate to the following folder in FTP:
/site/deployments/tools
- note that this folder might be hidden. If so, just type it in your FTP client software - In that folder you will see
deploy.cmd
file - download that file (
deploy.cmd
) - open the file to edit it with your favorite text edit tool
- there are two lines with
msbuild.exe
that instruct which project to be build (MyProjectfolder\MyProject.csproj
) - change the correct path for your other project, and do not forget that the other project is also in another folder (i.e.
MyOtherProjectFolder\MyOtherProject.csproj
) - save the
deploy.cmd
- upload the edited
deploy.cmd
and overwrite the old one under/site/deployments/tools
- commit a new change to your original source code repository on BitBucket
- have a cup of coffee and enjoy the result!
这篇关于在我的解决方案两个Web项目之一,该部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文