Explorar o código

refactor:优化脚本

王智勇 %!s(int64=4) %!d(string=hai) anos
pai
achega
901438f29e
Modificáronse 2 ficheiros con 3 adicións e 0 borrados
  1. 1 0
      blog.sh
  2. 2 0
      robots.txt

+ 1 - 0
blog.sh

@@ -8,5 +8,6 @@ hexo clean
 sleep 1
 #	 nohup hexo server >hexo-blog.log 2>&1 &
 hexo g
+cp -f robots.txt public/robots.txt
 systemctl restart nginx
 echo 'start success !'

+ 2 - 0
robots.txt

@@ -0,0 +1,2 @@
+User-Agent: SemrushBot
+Disallow: /