@@ -33,9 +33,9 @@ deploy:
- testwas
script:
# - echo "deploy ...."
-# - path=`pwd`
+ - path=`pwd`
# - sudo bash ci/judgePush.sh $path
- cd /var/www/testwas && git pull
- - sudo bash ci/executeCommand.sh
+ - sudo bash ci/executeCommand.sh $path
# only:
# - master
@@ -1,11 +1,11 @@
#!/bin/bash
-project_path=/var/www/testwas
+#project_path=/var/www/testwas
update_path=/var/www/update
#重启队列
#sudo bash runServes.sh
#进入项目目录
-cd $project_path
+cd $1
#将项目文件中3分钟之前改动的文件存到update文件
find -mmin -3 |xargs -I {} cp {} -u -t $update_path