I have a Gitbook repository and I would like to serve it through Heroku. How should I setup my application for this purpose? How to tell `Gitbook serve' command to listen to Heroku's port?
Thank you.
1- Add gitbook-cli to your project:
npm install --save gitbook-cli
2- Add a Procfile to your project:
web: ./node_modules/gitbook-cli/bin/gitbook.js serve --port $PORT