四步命令部署网站
时隔九年后,博客网站部署会有什么改变吗??
四步命令部署网站
先找模板,use this template,创建一个新的rep
git clone https://github.com/xx/xx.github.io.git
git add .
git commit -m edite
git push / bundle exec jekyll s
可能遇到的bugs
when git push return fatal not connect to server ,
推送缓冲区不够了,直接改大
git config –global http.postBuffer 524288000
return everything up-to-date
提交时没加参数m
git commit -m “提交修改”
Recv failure: Connection was reset
取消代理试试看
1
2
git config --global --unset http.proxy
git config --global --unset https.proxy
commit return error
提交的来源未设置,人家不知道你是谁
1
2
git config --global user.name "Your Name"
git config --global user.email "name@domain.example"
本地部署后正常,但推到服务器上时无法在网站正常显示
Windows正反斜杠不分,但GitHub上的服务器是Linux,区分正反斜杠. 即只能用“/” ,“\”会报错。
Win大小写不分,Linux区分大小写 即当路径中有大写时 若本地部署正常 推送到网站异常时 则同样可以检查一下路径中的大小写
本文由作者按照 CC BY 4.0 进行授权