{"id":13878423,"url":"https://github.com/railsjazz/rails_live_reload","last_synced_at":"2025-04-13T11:40:13.766Z","repository":{"id":37559230,"uuid":"497415423","full_name":"railsjazz/rails_live_reload","owner":"railsjazz","description":"Live Reload for your Rails app. The easiest way to increase your productivity.","archived":false,"fork":false,"pushed_at":"2025-02-12T09:14:05.000Z","size":4214,"stargazers_count":371,"open_issues_count":10,"forks_count":14,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-06T08:05:06.014Z","etag":null,"topics":["livereload","ruby","ruby-on-rails"],"latest_commit_sha":null,"homepage":"https://www.railsjazz.com/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/railsjazz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"patreon":"igorkasyanchuk"}},"created_at":"2022-05-28T19:53:47.000Z","updated_at":"2025-03-19T13:50:13.000Z","dependencies_parsed_at":"2023-11-27T07:34:04.103Z","dependency_job_id":"d46371ca-8db5-4fd5-b80b-a840dd1f8b5a","html_url":"https://github.com/railsjazz/rails_live_reload","commit_stats":{"total_commits":56,"total_committers":9,"mean_commits":6.222222222222222,"dds":0.5535714285714286,"last_synced_commit":"e173832846d3c37038bf88deaa3c9ab1c7a54d5c"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railsjazz%2Frails_live_reload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railsjazz%2Frails_live_reload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railsjazz%2Frails_live_reload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railsjazz%2Frails_live_reload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/railsjazz","download_url":"https://codeload.github.com/railsjazz/rails_live_reload/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248709173,"owners_count":21149141,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["livereload","ruby","ruby-on-rails"],"created_at":"2024-08-06T08:01:49.175Z","updated_at":"2025-04-13T11:40:13.728Z","avatar_url":"https://github.com/railsjazz.png","language":"Ruby","funding_links":["https://patreon.com/igorkasyanchuk"],"categories":["Ruby"],"sub_categories":[],"readme":"# Rails Live Reload\n\n[![RailsJazz](https://github.com/igorkasyanchuk/rails_time_travel/blob/main/docs/my_other.svg?raw=true)](https://www.railsjazz.com)\n\n![RailsLiveReload](docs/rails_live_reload.gif)\n\nThis is the simplest and probably the most robust way to add live reloading to your Rails app.\n\nJust add the gem and thats it, now you have a live reloading. **You don't need anything other than this gem for live reloading to work**.\n\nWorks with:\n\n- views (EBR/HAML/SLIM) (the page is reloaded only when changed views which were rendered on the page)\n- partials\n- CSS/JS\n- helpers (if configured)\n- YAML locales (if configured)\n- on the \"crash\" page, so it will be reloaded as soon as you make a fix\n\nThe page is reloaded fully with `window.location.reload()` to make sure that every chage will be displayed.\n\n## Usage\n\nJust add this gem to the Gemfile (in development environment) and start the `rails s`.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngroup :development do\n  gem \"rails_live_reload\"\nend\n```\n\nAnd then execute:\n```bash\n$ bundle\n```\n\n## Configuration\n\nrun command:\n\n\n```bash\nrails generate rails_live_reload:install\n```\nThe generator will install an initializer which describes `RailsLiveReload` configuration options.\n\n\n## How it works\n\nThere are 3 main parts:\n\n1) listener of file changes (using `listen` gem)\n2) collector of rendered views (see rails instrumentation)\n3) JavaScript client that communicates with server and triggers reloading when needed\n\n## Notes\n\nThe default configuration assumes that you either use asset pipeline, or that your assets compile quickly (on most applications asset compilation takes around 50-200ms), so it watches for changes in `app/assets` and `app/javascript` folders, this will not be a problem for 99% of users, but in case your asset compilation takes couple of seconds, this might not work propperly, in that case we would recommend you to add configuration to watch output folder.\n\n## Contributing\n\nYou are welcome to contribute. See list of `TODO's` below.\n\n## TODO\n\n- reload CSS without reloading the whole page?\n- smarter reload if there is a change in helper (check methods from rendered views?)\n- generator for initializer\n- more complex rules? e.g. if \"user.rb\" file is changed - reload all pages with rendered \"users\" views\n- check with older Rails versions\n- tests or specs\n- CI (github actions)\n- auto reload when rendered controller was changed\n\n## Troubleshooting\n\n- `Too many open files - pipe` - increase limits by `ulimit -n 10000`\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n[\u003cimg src=\"https://github.com/igorkasyanchuk/rails_time_travel/blob/main/docs/more_gems.png?raw=true\"\n/\u003e](https://www.railsjazz.com/?utm_source=github\u0026utm_medium=bottom\u0026utm_campaign=rails_live_reload)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frailsjazz%2Frails_live_reload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frailsjazz%2Frails_live_reload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frailsjazz%2Frails_live_reload/lists"}