Use zeit to deploy hugo website
遇见的神奇Bug
使用如下命令无法在zeit 中正确部署
cd themes;git clone -b master https://github.com/rhazdon/hugo-theme-hello-friend-ng;cd ../;hugo -D --gc
报错如下
23:51:08.330 Error: No Output Directory named "public" found after the Build completed. You can configure the Output Directory in your project settings. Learn more: https://zeit.co/docs/v2/platform/frequently-asked-questions#missing-public-directory
解决方式
别用submodule了…
折腾了半天,改成zeit github上官方示例就成了。所以所以说整骚操作就是白给,跟官方一样才能少踩坑。不用submodule不仅不会碰见这个bug,直接用默认的command就能成功部署,何乐而不为