【问题标题】:Synchronize Apache with a repository将 Apache 与存储库同步
【发布时间】:2012-12-29 11:15:32
【问题描述】:

我将开始一个新项目,我将拥有一个具有两个域(一个用于测试,另一个用于稳定)的 Apache。

我可能会使用 Git,所以假设我使用 Git 作为版本控制。我想将测试子域与存储库同步——这意味着,当有人提交到最终的 Git 服务器时,测试子域将运行最新的提交。

实现这一目标的正确方法是什么?谢谢!

【问题讨论】:

    标签: git apache svn sync


    【解决方案1】:

    如果你使用的是 Github,那么:

    https://help.github.com/articles/post-receive-hooks

    您的服务器上需要一个脚本,它可以在收到通知时执行 git pull。

    这里还有更多: http://www.bram.us/2012/05/06/automatic-website-publishing-with-git-github-style/

    还有更多: git / github and web server deployment configuration

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-03-05
      • 1970-01-01
      • 2011-09-16
      • 2020-08-11
      • 1970-01-01
      • 1970-01-01
      • 2022-06-16
      • 1970-01-01
      相关资源
      最近更新 更多