關於“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