johnbintz/rack-livereload

Rack::Lock undefined for threadsafe Rails apps

Closed this issue · 1 comments

When using config.threadsafe! there is no Rack::Lock middleware, so

config.middleware.insert_before(Rack::Lock, Rack::LiveReload)

will not work.

I'd suggest using

config.middleware.insert_after(ActionDispatch::Static, Rack::LiveReload)

instead - works for both cases.

Please see #16