@lniwn
2017-12-05T22:37:15.000000Z
字数 255
阅读 707
博客
流程:
本地md -> vps git-repo -> post-receive -> hexo generate -> hexo deploy -> nginx
以指定用户执行shell命令sudo -H -u [username] bash -c './post-receive'
添加当前用户到git组 sudo usermod -a -G groupname username
修改文件夹所属组 sudo chgrp git -R /home/lniwn/hexo/
修改文件夹权限 sudo chmod g+rw -R /home/lniwn/hexo/