优化git_pull.sh脚本:自动拉取最新代码,然后执行辅种脚本。

master
iyuu.cn 5 years ago
parent e02d32b129
commit e201505dca
  1. 2
      app/AutoReseed.php
  2. 3
      git_pull.sh

@ -13,7 +13,7 @@ use IYUU\Library\Table;
class AutoReseed class AutoReseed
{ {
// 版本号 // 版本号
const VER = '1.7.1'; const VER = '1.7.2';
// RPC连接 // RPC连接
private static $links = []; private static $links = [];
// 客户端配置 // 客户端配置

@ -1,4 +1,7 @@
#!/bin/sh #!/bin/sh
#脚本功能:从git拉取最新代码,然后执行辅种
cd $(dirname $0)
git fetch --all git fetch --all
git reset --hard origin/master git reset --hard origin/master
git pull git pull
php ./iyuu.php
Loading…
Cancel
Save