README.md in dashing-rails-1.0.0 vs README.md in dashing-rails-1.0.1
- old
+ new
@@ -46,15 +46,19 @@
5. Restart your server (must be a multi threaded server - See [Requirements](https://github.com/gottfrois/dashing-rails#requirements))
$ puma
-6. Open `config/development.rb` and add:
+6. Start redis server:
+ $ redis-server
+
+7. Open `config/development.rb` and add:
+
config.allow_concurrency = true
-7. Point your browser at [http://localhost:3000/dashing/dashboards](http://localhost:3000/dashing/dashboards) and have fun!
+8. Point your browser at [http://0.0.0.0:9292/dashing/dashboards](http://0.0.0.0:9292/dashing/dashboards) and have fun!
**Important Note:** *We need to update the configuration in development to handle multiple requests at the same time. One request for the page we’re working on, and another request for the SSE controller.*
- - -
@@ -119,14 +123,14 @@
Your widgets can be updated directly over HTTP. Post the data you want in json to `/dashing/widgets/widget_id`. For security, you will also have to include your `auth_token` (which you can generate in `config/initializers/dashing.rb`).
Example:
- curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "current": 100 }' http://localhost:3000/dashing/widgets/karma
+ curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "current": 100 }' http://0.0.0.0:9292/dashing/widgets/karma
or
- HTTParty.post('http://localhost:3000/dashing/widgets/karma',
+ HTTParty.post('http://0.0.0.0:9292/dashing/widgets/karma',
body: { auth_token: "YOUR_AUTH_TOKEN", current: 1000 }.to_json)
#### Dasboards
The `reload` action provided by [Shopify Dashing](http://shopify.github.io/dashing/) is currently not available.