Skip to content

lgc523/notes

Repository files navigation

记录读书笔记

生成静态/调试

hugo serve -D -t

发布任务

echo "loading ..."
cd /opt/git/notes
git stash
git pull
echo "hugo generate static public ..."
hugo -D
echo "copy data ..."
rm -fr /opt/dev/nginx/html/public
mv public /opt/dev/nginx/html/
echo "reload nginx ..."
/opt/dev/nginx/sbin -s reload

#crontab -e
0 */1 * * * bash /opt/dev/update.sh > /opt/dev/update.log 2>&1 &
#reload crond service
systemctl restart crond

About

My reading notes,recorded by Hugo-Hermit

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors