Preparing for Deployment
If you are satisfied with your site, it's time to get it ready to deploy. First, let's make sure that Gitbook and GitHub will play nicely together.
Create a new file called .gitignore
in /PATH/TO/gitbook
and paste the following into it:
# Node rules:
## Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
## Dependency directory
## Commenting this out is preferred by some people, see
## https://docs.npmjs.com/misc/faq#should-i-check-my-node_modules-folder-into-git
node_modules/
# Book build output
_book/
# eBook build output
*.epub
*.mobi
*.pdf
Okay, you're ready to go!
Now it's time to push it to your repo of choice. Directions for GitHub follow here.