Run Jekyll Locally
Run Jekyll Locally
Use the commands below from the project root.
1) Install dependencies (first time only)
bundle config set --local path 'vendor/bundle'
bundle install
2) Validate build
bundle exec jekyll build
bundle exec jekyll doctor
3) Start the site
Recommended (stable):
bundle exec jekyll serve --host 127.0.0.1 --port 4010
With LiveReload (if preferred):
bundle exec jekyll serve --livereload --host 127.0.0.1 --port 4000
If LiveReload causes issues, run without it:
bundle exec jekyll serve --host 127.0.0.1 --port 4000
If you get “Address already in use”, switch the port:
bundle exec jekyll serve --livereload --livereload-port 35730 --host 127.0.0.1 --port 4010
Quick port check:
ss -ltnp | grep ':4000\|:35729\|:35730' || true
4) Open in browser
- http://127.0.0.1:4010
5) Stop the server
Press Ctrl + C in the terminal where Jekyll is running.