Skip to content

Instantly share code, notes, and snippets.

@spuder
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spuder/290d2fd2891e7e6bba9a to your computer and use it in GitHub Desktop.
Save spuder/290d2fd2891e7e6bba9a to your computer and use it in GitHub Desktop.
Fail to get dashing working

Can't get dashing working, here is what I have done.

gem install dashing
dashing new foobar
bundle
dashing generate dashboard foo
dashing start

I expect there to be some widgets at either localhost:3030/foo

Nothing shows up, not even on the sample page

https://www.dropbox.com/s/v5360igujaukd7h/Screenshot%202014-10-07%2011.08.31.png?dl=0 https://www.dropbox.com/s/z3pavi3h3mffk6t/Screenshot%202014-10-07%2011.09.59.png?dl=0

The contents of foobar/dashboards/foo.erb is

<div class="gridster">
  <ul>
    <li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
      <div data-id="my_widget" data-view="Text"></div>
    </li>
  </ul>
</div>

Update

Looking at the logs, it appears that the post is recieved, yet the screen never updates.

sowen@spencers-mbp:/tmp/monitorama$ dashing start
Thin web server (v1.6.3 codename Protein Powder)
Maximum connections set to 1024
Listening on 0.0.0.0:3030, CTRL+C to stop
For the twitter widget to work, you need to put in your twitter API keys in the jobs/twitter.rb file.
127.0.0.1 - - [07/Oct/2014 11:30:20] "GET /sample HTTP/1.1" 200 2276 0.0032
127.0.0.1 - - [07/Oct/2014 11:30:21] "GET /sample HTTP/1.1" 200 2276 0.0027
127.0.0.1 - - [07/Oct/2014 11:30:43] "POST /widgets/welcome HTTP/1.1" 204 - 0.0007

As suggested in the IRC channel, I ran dashing job in another terminal. It did not apper to do anything.