# \--watch and run step?

**URL:** <https://ziggit.dev/t/watch-and-run-step/12831>\
**Category:** Help\
**Tags:** build-system\
**Created:** [November 3, 2025, 10:33pm UTC](https://ziggit.dev/t/watch-and-run-step/12831 "2025-11-03T22:33:19Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dasimmet](https://ziggit.dev/user_avatar/ziggit.dev/dasimmet/32/6618_2.png) [@dasimmet](https://ziggit.dev/u/dasimmet)\
**Post date:** [November 4, 2025, 8:00am UTC](https://ziggit.dev/t/watch-and-run-step/12831/3 "2025-11-04T08:00:37Z")

</div>

A similar question as this here:

> [@Build.zig webserver?](https://ziggit.dev/t/build-zig-webserver/7078):
>
> For projects where I’m building wasm and testing in a browser, I need to serve the files from a real httpd to allow cross-origin-resource-sharing. Just opening files directly in a browser doesn’t work. Does anyone know of a way to run a zig httpd from build.zig to serve the produced artefacts? My current solution is a dockerised httpd as I don’t want to assume that other developers have particular tools. A zig solution which is handled transparently by build.zig would be much better.

Its not possible yet, once a run command runs, the compiler cant stop it. But zig build will get an api in the future that can restart a rebuilt running process

---

_[View the full topic](https://ziggit.dev/t/watch-and-run-step/12831)._
