$ gatsby new
> What would you like to call your site? # my-gatsby-site> What would you like to name the folder where your site will be created? # Enter> Will you be using a CMS? # No> Would you like to install a styling system? # No> Would you like to install additional features with other plugins? # Build and host for free on Gatsby Cloud > Done > Yes$ cd my-gatsby-site
$ npm run develop
Gatsby site 접속하기
Browser에서 http://localhost:8000 접속
github 저장소 만들기
Repository name : my-gatsby-site
github 저장소에 Push
$ git remote add origin git@github.com:cmjeon/my-gatsby-site.git
$ git branch -M main
$ git push -u origin main
Gatsby Cloud
https://www.gatsbyjs.com/dashboard
gatsby cloud에서 사이트 생성하기
Add a site
Git provider : Github 선택
github 접근 허용
Repository : Select destination 선택
새창이 뜨면 Only select repositories 선택
my-gatsby-site 등록
Install 선택
Gatsby Cloud 페이지에서 Select a repository에서 my-gatsby-site 선택