 Pro Git 中文版 第2版 2.1.66$ chgrp -R www-data /srv/git 接下来我们要向 Apache 配置文件添加一些内容,来让 git-http-backend 作为 Web 服务器对 /git 路径请 求的处理器。 SetEnv GIT_PROJECT_ROOT /srv/git SetEnv GIT_HTTP_EXPORT_ALL ScriptAlias /git/ /usr/lib/git-core/git-http-backend/ 'tonychacon/signoff', 'Authorization' => "token #{ENV['TOKEN']}" } ) end end 希望这相当容易做。 在这个 web 钩子处理器中我们浏览刚刚推送上来的每一个提交,在提交信息中查找字符串 'Signed-off-by' 并且最终使用 HTTP 向 /repos/ Pro Git 中文版 第2版 2.1.66$ chgrp -R www-data /srv/git 接下来我们要向 Apache 配置文件添加一些内容,来让 git-http-backend 作为 Web 服务器对 /git 路径请 求的处理器。 SetEnv GIT_PROJECT_ROOT /srv/git SetEnv GIT_HTTP_EXPORT_ALL ScriptAlias /git/ /usr/lib/git-core/git-http-backend/ 'tonychacon/signoff', 'Authorization' => "token #{ENV['TOKEN']}" } ) end end 希望这相当容易做。 在这个 web 钩子处理器中我们浏览刚刚推送上来的每一个提交,在提交信息中查找字符串 'Signed-off-by' 并且最终使用 HTTP 向 /repos/- / - /statuses/ 0 码力 | 501 页 | 19.30 MB | 1 年前3
 Pro Git 中文版 第2版 2.1.66chgrp -R www-data /srv/git 接下来我们要向 Apache 配置文件添加一些内容,来让 git-http-backend 作 为 Web 服务器对 /git 路径请求的处理器。 SetEnv GIT_PROJECT_ROOT /srv/git SetEnv GIT_HTTP_EXPORT_ALL ScriptAlias /git/ /usr/lib/git-core/git-http-backend/ 'tonychacon/signoff', 'Authorization' => "token #{ENV['TOKEN']}" } ) end end 希望这相当容易做。 在这个 web 钩子处理器中我们浏览刚刚推送上来的每一 个提交,在提交信息中查找字符串 'Signed-off-by' 并且最终使用 HTTP 向 /repos/ Pro Git 中文版 第2版 2.1.66chgrp -R www-data /srv/git 接下来我们要向 Apache 配置文件添加一些内容,来让 git-http-backend 作 为 Web 服务器对 /git 路径请求的处理器。 SetEnv GIT_PROJECT_ROOT /srv/git SetEnv GIT_HTTP_EXPORT_ALL ScriptAlias /git/ /usr/lib/git-core/git-http-backend/ 'tonychacon/signoff', 'Authorization' => "token #{ENV['TOKEN']}" } ) end end 希望这相当容易做。 在这个 web 钩子处理器中我们浏览刚刚推送上来的每一 个提交,在提交信息中查找字符串 'Signed-off-by' 并且最终使用 HTTP 向 /repos/- / - /statuses/ 0 码力 | 670 页 | 13.59 MB | 1 年前3
共 2 条
- 1














