gem install jekyll bundler
jekyll serve --watch
to serve the drafts, add option --drafts
.
There is another way to start the server:
bundle exec jekyll serve --watch --drafts
jekyll build JEKYLL_ENV=production
TIP: you can use ENV['JEKYLL_ENV']
to get/set the env instead of jekyll.environment
variable