git auto deployment无效

时间:2015-07-28 12:16:06

标签: git github deployment

我正在进行git自动部署。我在本地机器和服务器上都有我的回购。我想在服务器上自动推送我的更改,当我从本地计算机上推送它时。在bitbucket我有设置服务作为POST以及设置挂钩POST与我想在推送事件上执行的文件的URL。我的钩子在每次推送时都被调用,但它不会让它在服务器上提取最新的更改。我还将有效负载打印到deploy.log文件中,如下所示。

s:677:"{"repository":{  
   "website":"",
   "fork":false,
   "name":"Test_df_2014",
   "scm":"git",
   "owner":"ABC_USER",
   "absolute_url":"/ABC_USER/test_df_2014/",
   "slug":"test_df_2014",
   "is_private":true
},
"truncated":false,
"commits":[  
   {  
      "node":"1462100cabcd",
      "files":[  
         {  
            "type":"modified",
            "file":"test.php"
         }
      ],
      "raw_author":"abc <abc.xyz@gmail.com>",
      "utctimestamp":"2015-07-28 11:42:52+00:00",
      "author":"ABC_USER",
      "timestamp":"2015-07-28 13:42:52",
      "raw_node":"1462100cabcd1eb4ba0d63b4047d71226246ea90",
      "parents":[  
         "3da591a3f31e"
      ],
      "branch":"master",
      "message":"testing 20\n",
      "revision":null,
      "size":-1
   }
],
"canon_url":"https://bitbucket.org",
"user":"ABC_USER"
}";N;

我试着用git pull,git fetch,git pull origin master ..但没有运气。 还检查了文件权限。一切都准备好了。我的服务器上也启用了shell_exec。 谁能帮我这个。我们将非常感谢您的帮助。

提前致谢。

0 个答案:

没有答案