# Do you usually test Jexyll builds locally before deploying?

**URL:** <https://talk.jekyllrb.com/t/do-you-usually-test-jexyll-builds-locally-before-deploying/10524>\
**Category:** Help\
**Created:** [September 16, 2026, 3:17pm UTC](https://talk.jekyllrb.com/t/do-you-usually-test-jexyll-builds-locally-before-deploying/10524 "2026-09-16T15:17:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![islabrown190](https://avatars.discourse-cdn.com/v4/letter/i/a88e57/32.png) [@islabrown190](https://talk.jekyllrb.com/u/islabrown190)\
**Post date:** [September 16, 2026, 3:17pm UTC](https://talk.jekyllrb.com/t/do-you-usually-test-jexyll-builds-locally-before-deploying/10524/1 "2026-09-16T15:17:17Z")

</div>

I’m getting used to Jekyll so i have a basic question. please someone reply. Do you normally run jekyll build and check generated \_site locally before deploying[,](https://geometrrydashapk.com/) or do you mostly rely on the deployement build?

---

<div class="post-metadata">

**Author:** ![discourse\_ai\_spam](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@discourse\_ai\_spam](https://talk.jekyllrb.com/u/discourse_ai_spam)\
**Post date:** [September 16, 2026, 3:17pm UTC](https://talk.jekyllrb.com/t/do-you-usually-test-jexyll-builds-locally-before-deploying/10524/2 "2026-09-16T15:17:19Z")

</div>

Unlisted on September 16, 2026, 3:17pm UTC



---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/2X/e/e4122dcf9d488222542c2c5ea758ce55b2b2f64a.png) [@system](https://talk.jekyllrb.com/u/system)\
**Post date:** [September 18, 2026, 7:33pm UTC](https://talk.jekyllrb.com/t/do-you-usually-test-jexyll-builds-locally-before-deploying/10524/3 "2026-09-18T19:33:16Z")

</div>

Listed on September 18, 2026, 7:33pm UTC



---

<div class="post-metadata">

**Author:** ![michaelbach](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelbach/32/2151_2.png) [@michaelbach](https://talk.jekyllrb.com/u/michaelbach)\
**Post date:** [September 19, 2026, 8:31am UTC](https://talk.jekyllrb.com/t/do-you-usually-test-jexyll-builds-locally-before-deploying/10524/4 "2026-09-19T08:31:13Z")

</div>

I use `JEKYLL_ENV=production bundle exec jekyll serve` and have `incremental: true` in \_config.yml. So the site opens in the browser, and whenever I’ve worked in the editor and save, after a brief delay, the page I’m working on automatically refreshes in the browser. That can go through many iterations.  
Only after I’m finished with all changes, I mirror the `_site` via sftp (using lftp, uploading only changed pages) to my domain.  
Hope that answers your question somewhat. Best, Michael.

---

<div class="post-metadata">

**Author:** ![colorfulcms](https://avatars.discourse-cdn.com/v4/letter/c/8491ac/32.png) [@colorfulcms](https://talk.jekyllrb.com/u/colorfulcms)\
**Post date:** [October 29, 2026, 7:22pm UTC](https://talk.jekyllrb.com/t/do-you-usually-test-jexyll-builds-locally-before-deploying/10524/5 "2026-10-29T19:22:01Z")

</div>

I do both, but the local check catches most problems. My routine is `bundle exec jekyll serve --livereload` while writing, then one clean production build before pushing:

JEKYLL\_ENV=production bundle exec jekyll build

That second step matters because things like analytics snippets, `jekyll.environment` conditionals and absolute URLs only show up with the production env, and `serve` quietly overrides `url` with localhost. I also run html-proofer on `_site` now and then to catch broken internal links and missing images.

One more tip: pin your Ruby and gem versions (commit `Gemfile.lock`) so the deployment build uses the same versions you tested with. Most “works locally but not on the server” issues I’ve hit came from a different Jekyll or plugin version on the host.

---

<div class="post-metadata">

**Author:** ![copycaptions](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/copycaptions/32/6632_2.png) [@copycaptions](https://talk.jekyllrb.com/u/copycaptions)\
**Post date:** [November 5, 2026, 3:27pm UTC](https://talk.jekyllrb.com/t/do-you-usually-test-jexyll-builds-locally-before-deploying/10524/6 "2026-11-05T15:27:41Z")

</div>

Hi, I’m new to Jekyll and still learning my way around. I test locally first — I run `bundle exec jekyll serve` while I’m working on a change, then do a full production build before deploying, so I can catch broken layouts or config mistakes before they go live. Thanks for sharing your routines above — the tip about checking the production build specifically was helpful.

---

<div class="post-metadata">

**Author:** ![clearanchor466](https://avatars.discourse-cdn.com/v4/letter/c/90ced4/32.png) [@clearanchor466](https://talk.jekyllrb.com/u/clearanchor466)\
**Post date:** [November 6, 2026, 7:49am UTC](https://talk.jekyllrb.com/t/do-you-usually-test-jexyll-builds-locally-before-deploying/10524/7 "2026-11-06T07:49:19Z")

</div>

This post was flagged by the community and is temporarily hidden.
