johnbintz/rack-livereload

RACK_LIVERELOAD_PORT not defined

Closed this issue · 6 comments

I'm getting this javascript error in Chrome with the latest version of rack-livereload.

Reverted to tag 0.3.11 and the error went away.

I'm using the config.ru setup. Also, guard doesn't seem to get run by running rackup, so I had to run it manually, but the javascript works now.

I think I found the issue. Can you try HEAD and see if that solves the problem?

Good catch with the no_swf, even though I didn't mention it. That fixed the issue.

Any reason you can think of that guard wouldn't get run automatically by rack-livereload? My config is here.

You have to run Guard manually, alongside your application (which in your case would be using rackup). rack-livereload is only middleware that enables LiveReload support for your app. I highly recommend using Foreman to run both processes at the same time. Be sure to disable Guard interactivity if you take this route, though, since it doesn't play well when running in Foreman, and you don't need it in this case.

And, since that change fixed your bug, closing this issue.

Thanks for the advice and thanks for rack-livereload. Cheers.