My awesome blog built with preact
git clone --depth 1https://github.com/sunnywx/sunnywx.github.io.git my-blog
cd my-blog
yarnyarn devyarn build
yarn serveyarn dep:githubyarn dep:vps-
npx gh-pages -d build -b gh-pagefatal: A branch named 'gh-page' already exists. 解决方法:rm -rf node_modules/.cache/gh-pages -
如果报 openssl错误, 就是node版本太高, 建议降到 v14, 或者在script前加
NODE_OPTIONS=--openssl-legacy-provider
MIT