Comments (6)
Any console errors? Is the script getting injected into the page? What browser versions?
from rack-livereload.
- Firefox 13.0
- Google Chrome 20.0.1132.43
The page's source contains the following in the head
:
<script type="text/javascript">
WEB_SOCKET_SWF_LOCATION = "/__rack/WebSocketMain.swf";
</script>
<script type="text/javascript" src="/__rack/swfobject.js"></script>
<script type="text/javascript" src="/__rack/web_socket.js"></script>
<script type="text/javascript" src="/__rack/livereload.js?host=localhost"></script>
No console errors (Firefox and Chrome running, Safari closed):
josh$ guard
Guard uses GNTP to send notifications.
Guard is now watching at '/Users/josh/Documents/Work/MuheimWebdesign/tttt'
Bundle already up-to-date
LiveReload 1.6 is waiting for a browser to connect.
Starting Spork for RSpec, Cucumber
Using RSpec
Using Cucumber
Preloading Rails environment
Preloading Rails environment
Loading Spork.prefork block...
Loading Spork.prefork block...
Spork is ready and listening on 8990!
Spork is ready and listening on 8989!
Spork server for RSpec, Cucumber successfully started
Guard::RSpec is running, with RSpec 2!
Running all specs
Running tests with args ["--drb", "-f", "progress", "-r", "/Users/josh/.rvm/gems/ruby-1.9.3-p0@tttt/gems/guard-rspec-1.1.0/lib/guard/rspec/formatters/notification_rspec.rb", "-f", "Guard::RSpec::Formatter::NotificationRSpec", "--out", "/dev/null", "--failure-exit-code", "2", "spec"]...
..............................
Finished in 0.52929 seconds
30 examples, 0 failures
Done.
Reloading browser: /assets/application.css
The last line happens when I edit some CSS, nothing happens in Firefox and Chrome (but would work in Safari if opened).
I checked Firefox' console, and when reloading the page, this error is generated:
Timestamp: 6/27/12 4:09:28 PM
Error: The connection to ws://localhost:35729/livereload was interrupted while the page was loading.
Source File: http://localhost:3000/__rack/livereload.js?host=localhost
Line: 185
When updating something in the application.css, then no warning or stuff is generated.
from rack-livereload.
Can you remove everything else from your Guardfile
but what is necessary to run your application and LiveReload and see if you have the same problem?
from rack-livereload.
Hey, it's working now! No idea why it didn't before. I removed the browser extensions, then commented out everything in the Guard file except the livereload stuff, and it worked. I uncommented the other stuff, restarted Guard, and it still works.
I will have to configure another project today, let's see whether it works immediately there.
Awesome extension, by the way. thank you!
from rack-livereload.
I removed all the guard-livereload related gems from my Gemfile, and it still works. Nice!
from rack-livereload.
Yay computers! :D
from rack-livereload.
Related Issues (20)
- Page is not refreshing HOT 7
- Don't reload the page on a POST HOT 2
- README.md doesn't explain difference between middleware.insert_{before,after} HOT 1
- Script Tag Not Being Injected HOT 3
- Allow different configuration and serving ports (to allow for nginx + ssl) HOT 6
- Script tag not being injected with Padrino
- Livereload Doesn't Reload Better_Errors gem Error Page HOT 6
- Would be better if Rack-LiveReload didn't use a hard IP address
- trigger via terminal? HOT 1
- Middleware Ordering Issue - Prevents `flash.keep` Use and Adds Log Verbosity
- How to make it work with https?
- <head> tags not apart of the DOM are being replaced HOT 2
- Requests are slowed down on Windows HOT 1
- Allow ws:// versus wss:// protocol to be configurable HOT 3
- Activate depending on server HOT 2
- Script tag not injected with Sinatra (link to minimal reproducible example) HOT 1
- Violates CSP `unsafe-inline` rule HOT 4
- No such middleware to insert before: Rack::Lock (RuntimeError) HOT 1
- Not able to change the host HOT 3
- i'll give a shot at maintenance HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rack-livereload.