-
npm install -g gatsby-cli
-
gatsby new hello-world https://github.com/gatsbyjs/gatsby-starter-hello-world
如果在命令的最后没有 URL,Gatsby 会基于 默认 starter 来为你创建网站。 -
cd hello-world
-
gatsby develop
gatsby develop
surge静态页面托管发布
- npm install --global surge
Then create a (free) account with them -
surge login
- gatsby build
-
surge public/
域名*****.surge.sh,这里的*我们是可以自定义的
eager-bat.surge.sh
image.png
https://www.gatsbyjs.cn/tutorial/part-zero/
https://segmentfault.com/a/1190000021440493
网友评论