local development

9 views
Skip to first unread message

Iqbal Hossain

unread,
Jul 27, 2025, 11:15:53 AMJul 27
to KrakenD Community
Its annoying to build and run the project after each change. why can't I configure it with air? anyone can answer?

Albert Garcia

unread,
Jul 27, 2025, 11:20:18 AMJul 27
to Iqbal Hossain, KrakenD Community
Iqbal,

You can use KrakenD’s Hot Reload feature to avoid rebuilding and restarting manually after each change. The :watch Docker tag watches your config files and restarts KrakenD automatically when they change, which fits exactly your use case.

To use it, you need to build the :watch image yourself (only for the open source edition) via this repo: https://github.com/krakend/krakend-watch

Clone it, then:
docker build -t krakend:watch .
Run it mounting your config folder, for example:
docker run --rm -v "$PWD:/etc/krakend" krakend:watch
There are environment variables to enable flexible configuration if you use those.

Heads up: this feature is only recommended for development. It lacks graceful shutdown, causes some performance loss, and can fail to restart if config is invalid. So it’s not made for production, where config changes should go through version control and CI/CD pipelines.

Check the official docs for detailed setup and usage: https://www.krakend.io/docs/developer/hot-reload/

Best,
Albert GarciaAlbert Garcia
CSO
KrakenD Logo
LinkedIn icon  Twitter icon
Confidentiality Notice: This email, including any attachments, may contain confidential and privileged information for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure, or distribution is prohibited. If you are not the intended recipient, please contact the sender immediately and destroy all copies of this email. Thank you. This email has been sent in accordance with the European Union General Data Protection Regulation (EU GDPR).


El dom, 27 jul 2025 a las 17:15, Iqbal Hossain (<zafar....@gmail.com>) escribió:
Its annoying to build and run the project after each change. why can't I configure it with air? anyone can answer?

--
You received this message because you are subscribed to the Google Groups "KrakenD Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to community+...@krakend.io.
To view this discussion visit https://groups.google.com/a/krakend.io/d/msgid/community/6c224b6e-8064-47e9-adff-31b0e84ff30dn%40krakend.io.

Iqbal Hossain

unread,
Jul 31, 2025, 6:12:06 AMJul 31
to Albert Garcia, KrakenD Community
Albert,

Thanks a bunch! I run a go community with over 2k gophers. We have open source projects. We are still very very young. It's the only go community in Bangladesh. I am the creator of the community. We are planning to use krakenD as a gateway and hoping to contribute to it!

Wish us luck! and also if you like you can just come say a Hi! the server would be boosted up!
https://discord.gg/6CPWcB6QNx
Reply all
Reply to author
Forward
0 new messages