Web 开发的版本控制
现在,我使用 Dreamweaver 在本地编辑文件,然后将它们 ftp 到实时服务器。
我想开始使用版本控制(我正在考虑颠覆),但我根本没有版本控制的经验。
那么这是我需要在本地设置还是在我的网络服务器上设置的东西?
如果在我的网络服务器上,我是否应该联系我的托管提供商进行设置?
谢谢
Right now, I am using Dreamweaver to edit my files locally then ftp them to the live server.
I want to start using version control (I am thinking subversion) but I have no experience with version control at all.
So is this something I would need to setup locally or have setup on my web server?
If on my web server, is this something I should contact my hosting provider about setting up?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
版本控制通常是您在开发过程中使用的流程/工具,因此您无需对生产 Web 服务器执行任何操作。在进行更改时,您将使用 SVN 客户端或 Dreamweaver 与版本控制系统进行交互,但发布站点的方法不会改变。
如果与编辑工具集成,使用版本控制会更好。 Dreamweaver 功能的最新版本(自 CS4 起)包括 Subversion 集成。本文讲述SVN集成:
http://www.adobe.com/devnet/dreamweaver/articles/using_subversion_pt1。 html。
设置 Subversion 分为两个部分:允许您访问存储库的客户端部分和为存储库本身提供服务的服务器部分。根据您选择的设置方式,一个安装程序可能同时涵盖客户端和服务器。虽然 DW 有一些内置集成,但它不应该取代成熟的客户端。
该软件可在此处获取:http://subversion.apache.org/packages.html。如果您使用 Windows,TortoiseSVN 是一个将 SVN 与 Windows 资源管理器集成的客户端。
对于服务器部分,您可以设置自己的存储库< /a> 或使用公共(可能免费)存储库。
当然,网上有很多有关 Subversion 的好信息,但权威手册是 http://svnbook.red-bean.com/en/1.5/index.html。
祝你好运!!!
Version control is generally a process/tool you use during development, so you wouldn't have to do anything with your production web server. You will use either an SVN client or Dreamweaver to interact with the version control system as you make changes, but your method of publishing your site wouldn't change.
Using version control is much nicer if integrated with your editing tool. Recent versions of Dreamweaver feature (since CS4) include Subversion integration. This article talks about the SVN integration:
http://www.adobe.com/devnet/dreamweaver/articles/using_subversion_pt1.html.
There are 2 parts to setting up Subversion: the client part to allow you to access the repository, and the server part that serves the repository itself. Depending on how you choose to set things up, one installer might cover both client and server. While DW has some built-in integration, its not supposed to replace a full-fledged client.
The software is available here: http://subversion.apache.org/packages.html. If you use Windows, TortoiseSVN is a client that integrates SVN with Windows Explorer.
For the server part, you can either set up your own repository or use a public (possibly free) repository.
There is of course a lot of good information on the web about Subversion, but the definitive handbook is http://svnbook.red-bean.com/en/1.5/index.html.
Good luck!!!
本地。您在托管站点上只会有一个版本,那就是生产版本。您将在本地进行更改。
编辑:这是一个不错的链接,可以为您提供一些背景知识和基本教程。 http://www.owlnet.rice.edu/~comp314/svn.html< /a>.一旦您熟悉了,svn 的权威参考位于 http://svnbook.red-bean.com/ 。
Locally. You're only going to have one version on the hosting site, and that's the production version. You'll do your changes locally.
edit: Here's a decent link to give you some background, and a basic tutorial. http://www.owlnet.rice.edu/~comp314/svn.html. Once you're comfortable, the definitive reference for svn is at http://svnbook.red-bean.com/.
如果您要使用 SVN,则需要托管它。你可以将它托管在你的服务器或计算机上,这并不重要,但是如果你想在你的计算机出现问题时获得一个副本,我建议你在服务器上安装 SVN。
If you are going to use SVN, you will need to host it. You can host it on your server or computer it doesn't matter, but if you want to have a copy if something goes wrong with your computer I suggest to install SVN on server.