Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about setting up for dashing #2

Open
sikosis opened this issue Nov 29, 2012 · 3 comments
Open

Question about setting up for dashing #2

sikosis opened this issue Nov 29, 2012 · 3 comments

Comments

@sikosis
Copy link

sikosis commented Nov 29, 2012

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
Copy link
Author

sikosis commented Nov 29, 2012

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
Copy link
Owner

vrish88 commented Nov 29, 2012

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
Copy link
Author

sikosis commented Dec 17, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants