相关疑难解决方法(0)

哪个是最好的git托管sw? - Gitolite与Gitlab对阵Gitorius

我正在为几个用户寻找一个git托管环境.因此,我搜索了Gitolite,GitlabGitorius之间的比较.但我没有得到任何有用的东西.

有没有人,谁有不同的托管工具的经验,可以提供建议?

git hosting gitorious gitolite gitlab

57
推荐指数
1
解决办法
5万
查看次数

GitLab 5.2 Post-Receive WebHook

我在与生产网络服务器相同的服务器上运行GitLab v5.2(/ var/www中的Document Root).

我正在尝试设置一个标准的GitLab Post-Receive Hook,但我发现很少有关于如何设置脚本来处理发布的JSON数据的信息.我不打算做任何自定义的事情,只是开箱即用,我想在我的网站位置接收后接收数据(请记住在同一台服务器上),然后在收到时从origin-master拉出(提供后接收数据源于推送到主分支).这样,在/ var/www中找到的网站总是与主人相同.

有人可以,从帖子数据中给我一个拉动脚本的例子,或者指向我正确的方向让我创建一个?

GitLab Hook请求示例 - 对于那些没有GitLab实例的人,这里是GitLab Post-Receive JSON数据的样子(直接来自GitLab帮助)

{
 "before": "95790bf891e76fee5e1747ab589903a6a1f80f22",
 "after": "da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
 "ref": "refs/heads/master",
 "user_id": 4,
 "user_name": "John Smith",
 "repository": {
   "name": "Diaspora",
   "url": "git@localhost:diaspora.git",
   "description": "",
   "homepage": "http://localhost/diaspora",
 },
 "commits": [
   {
     "id": "b6568db1bc1dcd7f8b4d5a946b0b91f9dacd7327",
     "message": "Update Catalan translation to e38cb41.",
     "timestamp": "2011-12-12T14:27:31+02:00",
     "url": "http://localhost/diaspora/commits/b6568db1bc1dcd7f8b4d5a946b0b91f9dacd7327",
     "author": {
       "name": "Jordi Mallach",
       "email": "jordi@softcatala.org",
     }
   },
   // ...
   {
     "id": "da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
     "message": "fixed readme",
     "timestamp": "2012-01-03T23:36:29+02:00",
     "url": "http://localhost/diaspora/commits/da1560886d4f094c3e6c9ef40349f7d38b5d27d7",
     "author": {
       "name": "GitLab dev user", …
Run Code Online (Sandbox Code Playgroud)

git json webhooks git-post-receive gitlab

8
推荐指数
1
解决办法
5053
查看次数

标签 统计

git ×2

gitlab ×2

git-post-receive ×1

gitolite ×1

gitorious ×1

hosting ×1

json ×1

webhooks ×1