ruby - How to run/debug dashing dashboards on a client PC with Eclipse -
i trying create dashboard work via dashing. have opensuse server set (command-line only, no x server), , dashing running on successfully. want able utilize work windows 7 pc configure ruby-based jobs scripts, etc. have eclipse set ruby, installed ruby on windows , have debugger configured in eclipse. git set on server, dashing folder. have 2 questions methods:
question 1: now, can configure breakpoints in ruby jobs , debug variables, etc., debugger throws error when reaches scheduler part (see code pasted below) stating "uninitialised constant". i'm guessing eclipse doesn't understand how run/debug specific dashing code; apparently dashing uses rufus-scheduler. how can eclipse run and/or debug dashing dashboards?
example of ruby job in dashing, rufus-scheduler, dashing website:
# :first_in sets how long takes before job first run. in case, run scheduler.every '1m', :first_in => 0 |job| send_event('karma', { current: rand(1000) }) end
question 2: way move code windows pc opensuse, via git. means when want test alter (simple or complicated) must commit git on client, force git branch on server. means commit history going filled test changes. there improve way this? (i'm guessing way around this, create test web server on client pc)
thanks help can provide.
try "dashing job job_name auth_token". auth_token stored in config.ru.
dennis
me@host:~/projects/my-dashing$ dashing --help tasks: dashing generate (widget/dashboard/job) name # creates new widget, dashboard, or job. dashing help [task] # describe available tasks or 1 specific task dashing install gist_id # installs new widget gist. dashing job job_name auth_token(optional) # runs specified job. create sure supply auth token if have 1 set. dashing new project_name # sets things needed dashboard project. dashing start # starts server in style! me@host:~/projects/my-dashing$
ruby eclipse git rufus-scheduler dashing
No comments:
Post a Comment