关于“post-commit hook failed (exit code 255) with no output.”的解决方法

阿里云服务器环境(PHP+Nginx+MySQL)

1. 首先给 post-commit 设置权限(hooks目录下):

chmod 755 post-commit

2.  清空 post-commit 里面的代码,然后敲入以下代码并保存:

#!/bin/sh
export LANG=en_US.UTF-8
/usr/bin/svn up /data/wwwroot --username hahaha --password hahaha --no-auth-cache --non-interactive

(/data/wwwroot 以你网站根目录为准)

done!

 

posted @ 2016-07-10 03:22  JorsonWong  阅读(2846)  评论(0编辑  收藏  举报