【发布时间】:2010-10-25 06:36:40
【问题描述】:
我如何设置域来镜像托管在 git 存储库(github.com/nosppleasemam/dylanstestserver 和 dylanstestserver.com)上的文件。存储库是一个网站,所以我想托管存储在存储库中的文件,而不仅仅是镜像文件以供下载。
谢谢!
【问题讨论】:
我如何设置域来镜像托管在 git 存储库(github.com/nosppleasemam/dylanstestserver 和 dylanstestserver.com)上的文件。存储库是一个网站,所以我想托管存储在存储库中的文件,而不仅仅是镜像文件以供下载。
谢谢!
【问题讨论】:
从该网络服务器,您可以将 cron 作业设置为频繁“拉动”。
【讨论】:
您可以use a hook 在服务器端签出存储库。
(链接页面有错别字……是$REF,不是$RE)
【讨论】:
post-commit 挂钩。在ubuntu中安装ncftp包,并创建一个shell脚本.git/hooks/pre-commit运行ncftpput -u username -p password hostname /localdirectory /removedirectory