Subversion的web开发 [英] Subversion for web development

查看:223
本文介绍了Subversion的web开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读了很多关于颠覆和推动信息到Web服务器上的文章,但我仍然有困难。

I've read a lot of articles about Subversion and pushing the information to a web server, but I'm still having difficulties.

我可以理解关于创建资源库,检查出等基础知识,但是我需要帮助的Web服务器的部分。

I can understand the basics about creating the repository and checking out etc., but I need help for the web server part.

我运行Apache和Subverion是我正在开发服务器上运行。

I'm running Apache and Subverion is running on the development server I'm working on.

现在创建我在 ** **的htdocs 文件夹存储库与我的实时Web文档一起或做我创建它的超出了我的 htdocs目录文件夹中;

Now do I create my repository in the **htdocs** folder along with my live web documents or do I create it outside of my htdocs folder.;

一旦我有我的仓库我导入新创建的存储库到我的实时网络文件夹,它让我的文件调用到我的本地机器上进行编辑,然后将其提交到开发服务器。

Once I have my repository I import the newly created repository into my live web folder, which is allowing me to call the files onto my local machine edit them and then commit them to the development server.

我想首先知道正确的方式;其次,我怎么会自动从最近更新的存储库中的文件移动到实时Web文件夹?

I want to know firstly the correct way and secondly, how do I automatically move the files from the newly updated repository to the live web folder?

请任何意见,我一直在寻找了很长时间。谢谢

Please any advice I've been searching for a long time. Thanks

修改

反正是有,你可以帮我后提交的脚本,我想如果我能得到这个工作,我能够实现我需要什么。

Is there anyway you could help me with the post-commit scripts, I think if I can get this to work I'd be able to achieve what I need.

我希望能够更改我的code本地然后当我完成后提交它,这被发送到程序存储库,然后自动发送到的htdocs 文件夹中。

I'd like to be able to make changes to my code locally then when I'm finished committing it, which is sent to the respository and then automatically sent to the htdocs folder.

推荐答案

有是文件夹结构到你的储存库标准,通常由至少一个树干和分支的文件夹中。这是因为颠覆允许你创建一个分支(它复制了树干,并允许并发提交),这样你就可以说你的工作网站2版。

There is a standard of folder structure to your repository which typically consists of at least a "trunk" and "branch" folder. This is because Subversion allows you to create a branch (it copies off the trunk and allows concurrent commits) so you can work on say "version 2" of your website.

我个人不会造成在htdocs文件夹的回购协议,我会做它的外面。我认为一个好的结构可

Personally I wouldn't create your repo in the htdocs folder, I'd do it outside of that. I think a good structure may be

repo
  - trunk
    - htdocs
  - branch
    - htdocs

这样,你可以控制哪些存在htdocs文件夹以外的图书馆,东西是共同的主要之中网站系统停止向私人图书馆公共访问。 Smarty的,例如通过将库中的一个目录下的htdocs文件夹上面采用了这种方法。

That way you can control libraries which exist outside of the htdocs folder, something which is common amongst major web systems to stop public access to private libraries. Smarty for example employs this approach by placing the library one directory above the htdocs folder.

这篇关于Subversion的web开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆