bundle exec jekyll serve --watch --drafts
To build for GitHub pages (when using custom plugins):
# install jgd
sudo gem install jgd
# build and push remotely
# the argument `-n` specifies to jgd to use bundle when building the pages
jgd -n
P.S. You have to serve the content from the branch gh-pages
. Moreover, before using jgd
, make sure you committed the files.