vrish88 / sinatra_cyclist

Cycle through Sinatra routes at a regular duration.
MIT License
94 stars 18 forks source link

Question about setting up for dashing #2

Open sikosis opened 11 years ago

sikosis commented 11 years ago

Do you need classic_application.rb and modular_application.rb when you are using dashing ?

The doco seems to suggest that you don't. However, I've run dashing and nothing happens as far as cycling.

Am I then suppose to open the browser at localhost:3030/_cycle to fire it off ?

sikosis commented 11 years ago

Here's the web server's output ...

[29/Nov/2012 16:31:09] "GET /_cycle?duration=10 HTTP/1.1" 200 - 0.0011 Errno::ENOENT - No such file or directory - /Users/dashing/Dashboard/dashboards/favicon.ico.erb

followed by a crap load of errors.

vrish88 commented 11 years ago

For a dashing project, don't worry about the classic or modular application setup or example files.

What does your config.ru look like?

sikosis commented 11 years ago

require "sinatra/cyclist" require 'dashing'

configure do set :auth_token, '1234' set :default_dashboard, 'itig'

helpers do def protected!

Put any authentication code you want in here.

 # This method is run before accessing any resource.
end

end end

map Sinatra::Application.assets_prefix do run Sinatra::Application.sprockets end

set [:itig,:checkout,:ppt,:signage]

run Sinatra::Application