Auto reloads Rails applications when assets or views have changed
This gem adds hot reloading feature to Rails applications that contains hotwire. The application is automatically reloaded when:
app/assets/builds
app/views
group :development do
gem "rails_hotreload"
end
$ bundle install
= render '/rails_hotreload/stream' if Rails.env.development?
bin/rails rails_hotreload:start
Note: If your project is using Procfile.dev (Foreman), then you can add:
rails_hotreload: bin/rails rails_hotreload:start
app/assets/builds,app/views/
. This can be customized as the following:bin/rails rails_hotreload:start app/javascripts,app/stylesheets,app/views/
= render '/rails_hotreload/stream', custom_style: 'left: 20px; bottom: 20px;'
Bug reports and pull requests are welcome on https://github.com/owen2345/rails-hotreload. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
To ensure your contribution changes, run the tests with: docker-compose run test
The gem is available as open source under the terms of the MIT License.