关于“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!

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM