阿里云服务器环境(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!

 

相关文章:

  • 2021-12-03
  • 2021-05-19
  • 2021-07-22
  • 2021-07-10
  • 2022-12-23
  • 2021-05-16
  • 2021-05-05
  • 2022-12-23
猜你喜欢
  • 2021-07-29
  • 2022-12-23
  • 2021-05-04
  • 2022-12-23
  • 2022-12-23
  • 2021-09-12
相关资源
相似解决方案