> ## Content Index
> Fetch the complete content index at: https://www.jvrc.ca/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to setup live code reload in Hanami and Rails
- URL: https://www.jvrc.ca/how-to-setup-live-code-reload-in-hanami-and-rails/
- Published: 2026-07-15T17:41:00.000Z
- Updated: 2026-09-09T21:16:44.000Z
- Description: Modern web-frameworks automatically reload the browser after every change. Both Rails and Hanami won’t do this by default, so it might surprise you if you’re new to them. Discover how to configure it.
- Author: Javier Cervantes
- Tags: rubyforum, existing-topic

Modern web-frameworks automatically reload the browser after every change. Both Rails and Hanami won’t do this by default, so it might surprise you if you’re new to them.

However, Hanami offers fast code reloading in development via the [hanami-reloader](https://github.com/hanami/reloader?ref=jvrc.ca) gem. When you run `hanami server` in development, `guard` watches the file system for code edits and restarts the Hanami server when changes occur. You can follow the official [code reloading guide](https://guides.hanamirb.org/v2.0/app/code-reloading/?ref=jvrc.ca) to set it up.

In Rails you can get it working by adding [rails\_live\_reload](https://github.com/railsjazz/rails%5Flive%5Freload?tab=readme-ov-file&ref=jvrc.ca#rails-live-reload) gem to the Gemfile and running the `rails server` command.