max pleaner max pleaner - 1 year ago 77
Ruby Question

How can I use live reload in a public-facing ruby server?

I'm using the livereload plugin for guard in combination with the chrome extension. It's working nicely and my browser refreshes whenever a source file is changed.

It seems like Meteor has this functionality without requiring a chrome extension. Is there any similar library for the ruby world, to hot-push ui changes?

Answer Source

Instead of using the browser plugin, use Rack::LiveReload. It will send events to the browser via web sockets and cause the browser to reload when watched changes occur.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download