Make sure that you have the Gatsby CLI program installed:
npm install --global gatsby-cli
$ yarn
$ yarn dev
Now point your browser to http://localhost:8000.
$ yarn build
$ yarn start
Now point your browser to http://localhost:9000 and test the production build locally. When you are happy with it, deploy the public folder to your production web server.