我如何使用后承诺挂钩提交的文件复制到从SVN网页目录? [英] How can I use post-commit hooks to copy committed files to a web directory from SVN?

查看:116
本文介绍了我如何使用后承诺挂钩提交的文件复制到从SVN网页目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Ubuntu的服务器安装Apache和颠覆。我用这个服务器作为中间服务器,纯粹是为了测试目的。我使用Apache来承载Web应用程序和Subversion保留源$ C ​​$ C的版本化副本。

My Ubuntu server has Apache and Subversion installed. I use this server as a staging server, purely for testing purposes. I use Apache to host the web application, and Subversion to keep versioned copies of the source code.

我目前的工作流程:


  • 请更改文件

  • 文件提交到Subversion版本库

  • 在SFTP新上传文件到Apache的公共目录

  • 查看变化在我的网页浏览器

我会更幸福,如果我的工作流程是这样的:

I would be much happier if my workflow was like this:


  • 请更改文件

  • 文件提交到Subversion版本库

  • 在后台,颠覆提出承诺文件的副本到Apache公共目录

  • 查看变化在我的网页浏览器

我很少服务器管理经验,任何帮助或指针是AP preciated。我听说,提交后钩子我需要什么,而且我可以写的bash脚本要做到这一点,但我不知道从哪里开始后相当多的谷歌搜索并没有真正发现任何东西。

I have very little server admin experience, and any help or pointers are appreciated. I heard that post-commit hooks are what I need, and that I can write bash scripts to do this, but I'm not sure where to start and didn't really find anything after quite a lot of Googling.

感谢您!

推荐答案

官方的答案就在这里。

我在管理我的仓库网站。我怎样才能让每一次的提交后,现场直播自动更新?

这篇关于我如何使用后承诺挂钩提交的文件复制到从SVN网页目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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