Explorar el Código

refactor:优化脚本

王智勇 hace 4 años
padre
commit
901438f29e
Se han modificado 2 ficheros con 3 adiciones y 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: /