railsjazz / rails_live_reload

Live Reload for your Rails app. The easiest way to increase your productivity.
https://www.railsjazz.com/
MIT License
318 stars 8 forks source link

No auto-reload for a new rails 7 project #11

Closed installero closed 2 years ago

installero commented 2 years ago

Just a quick video:

https://youtu.be/Nj4KsL1FA98

Rails 7.0.3
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
manastyretskyi commented 2 years ago

Hello @installero,

Everything seems to be right, in that video when you start the server you can see what files are being watched.

Screenshot 2022-06-11 at 7 44 39 PM

In your case live reloading doesn't work because you are changing simple html file, which is not listened by default.

Screenshot 2022-06-11 at 7 47 58 PM

You can change configuration to include html files as well, there is section in README for that.

igorkasyanchuk commented 2 years ago

We suggest you to use .erb as a template language since HTML is not suitable for Rails view. Just in case you need to use it - please configure gem as mentioned above.

installero commented 2 years ago

Sorry, my bad 🤦‍♂️

Thank's for your work and for a quick reply. This gem seems to be useful!

igorkasyanchuk commented 2 years ago

Thanks, check more cool gems here https://www.railsjazz.com