阿里雲服務器環境(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!
