ya2.top - e攻城狮

Example domain paragraphs

部署脚本 ci.sh:

1 2 3 4 #!/bin/sh cd /www/project/ #项目目录 sudo unset GIT_DIR sudo git pull webhook(以php为例):

1 2 3 <?php /* check you auth */ system( "sudo /xxx/ci.sh 2>&1" ); # xxx表示你ci.sh文件所在目录 注意 1 :git公钥归属的问题会导致你的 git pull 命令无法执行失败,需要把当前web服务器的用户权限提高