gem install bundler jekyll --user-install
bundle install --path vendor/bundle
bundle exec jekyll serve
If you are running the development server on a server, you won't be able to access the server's internal localhost from your web browser. Instead you have to run on host 0.0.0.0 and then access the server through its domain name or IP address.
bundle exec jekyll serve --host=0.0.0.0