发布到实时网站
我和我的朋友正在合作开发一个 ASP.NET 支持的网站。为了在本地开发它,我们使用 Visual Web Developer Express(足以满足我们的需求)。 Subversion(使用 Tortoise SVN)是我们选择的源代码控制,存储库驻留在 Unfuddle.com 上。
当我们需要更新实时站点时,我们会遇到问题 - 因为它没有版本控制。目前,我们使用 VWD 中的“复制到网站”功能,该功能使用 FTP 复制文件。这里有一些问题:
- VWD 只跟踪一个用户上传的文件,因此如果其他用户将文件的较新版本上传到实时站点,我这边的 VWD 无法判断该文件的实时版本是新版本还是我的版本是。
- 无法判断实时网站上是否提供了所有最新更改。
- 我们必须小心,不要破坏共享的 web.config 文件,因为其他用户的本地数据库设置与我的不同,当然,实时数据库设置完全是另一回事!
你们用什么来发布到实时网站?是否有任何东西与 Subversion 相关联,以便我们可以自动化该过程并始终保证实时站点同步到更改列表号?另外,如何管理不同的 web.config 文件设置?
谢谢!
My friend and I are collaborating on a ASP.NET powered website. To develop it locally, we use Visual Web Developer Express (good enough for our needs). Subversion (using Tortoise SVN) is our source control of choice with the repository residing on Unfuddle.com.
We run into problems when we need to update the live site - since there's no version control on it. Currently we use the "Copy to Website" feature in VWD which copies the files using FTP. Here are some problems:
- VWD only keeps track of files uploaded by one user, so if the other user uploads a newer version of a file to the live site, VWD on my side cannot tell whether the live version of the file is newer or mine is.
- There's no way to tell whether all the latest changes are available on the live site.
- We have to be careful not to party all over the shared web.config file since the other user's local DB settings are different from mine, and of course, the live DB settings are a whole other story!
What do you guys use to publish to a live site? Does anything out there tie into Subversion so that we can automate the process and always guarantee that the live site is synced to a change list number? Also, how do you manage the different web.config file settings?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧...
再等 2 周,您就拥有了...Visual Studio 2010。为您提供了很多好东西:
有任何颠覆吗?当然 - 任何 CI 服务器都可以做到这一点。但重点是:你不想要。版本控制!=网站发布。您不必发布每次签到。在重要的非游戏设置中,更改是在开发时完成的,然后转移到测试服务器,可能转移到集成服务器,最后转移到生产。你不会“随心所欲”地发布。
Well...
wait another 2 weeks and you have.... Visual Studio 2010. Lots of nice things for you:
Any subversion tie in? Sure - any CI server can do that. Point is, though: you dont want. Version Control != website publishing. You dont publish every checkin. In non-trivial non-playing-around setups, changes are done on development, then moved to a test server, thne possibly to an integration server and then finally to production. You dont publish "as you go".