File tree 4 files changed +24
-8
lines changed
4 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 1
1
require "bundler/gem_tasks"
2
+
3
+
4
+ # put the current packaged version of the gem in dropbox
5
+ desc "copies the current packaged .gem file to dropbox and prints the URL"
6
+ task :dropbox do
7
+
8
+ path = File . dirname ( __FILE__ ) +"/pkg/scout_realtime-#{ Scout ::Realtime ::VERSION } .gem"
9
+ if !File . exists? ( path )
10
+ puts "Doesn't exist: #{ path } . Try rake build"
11
+ exit ( 0 )
12
+ end
13
+
14
+ FileUtils . copy ( path , "/Users/andre/Dropbox/Public/" )
15
+ puts "wget https://dl.dropboxusercontent.com/u/18554/scout_realtime-#{ Scout ::Realtime ::VERSION } .gem; sudo gem install scout_realtime"
16
+ end
Original file line number Diff line number Diff line change 1
1
var tv = 1000 ;
2
- palette = new Rickshaw . Color . Palette ( { scheme : 'spectrum14 ' } ) ;
2
+ palette = new Rickshaw . Color . Palette ( { scheme : 'munin ' } ) ;
3
3
4
4
var chartDefs = {
5
5
/* CPU */
@@ -71,7 +71,7 @@ $(function () {
71
71
72
72
var graph = new Rickshaw . Graph ( {
73
73
element : this ,
74
- renderer : 'stack ' ,
74
+ renderer : 'line ' ,
75
75
series : new Rickshaw . Series . FixedDuration ( hash ,
76
76
palette , {
77
77
timeInterval : tv ,
Original file line number Diff line number Diff line change 1
1
require 'sinatra'
2
- require 'sinatra/reloader' if development?
2
+ require 'sinatra/reloader' if ENV [ "RACK_ENV" ] . to_s == " development"
3
3
require 'ostruct'
4
4
5
5
class Scout ::Realtime ::WebApp < Sinatra ::Base
6
6
7
- configure :development do
8
- register Sinatra ::Reloader
9
- end
10
-
11
7
set :port , 5555
12
8
set :static , true # set up static file routing
13
9
set :public_dir , File . expand_path ( '../web' , __FILE__ ) # set up the static dir (with images/js/css inside)
14
10
set :views , File . expand_path ( '../web/views' , __FILE__ ) # set up the views dir
11
+ set :environment , ENV [ "RACK_ENV" ] && ENV [ "RACK_ENV" ] != '' ? ENV [ "RACK_ENV" ] : :production
12
+
13
+ configure :development do
14
+ register Sinatra ::Reloader
15
+ end
15
16
16
17
get '/' do
17
18
latest_run = Scout ::Realtime ::Main . instance . collector . latest_run
Original file line number Diff line number Diff line change @@ -26,5 +26,5 @@ Gem::Specification.new do |spec|
26
26
spec . add_development_dependency "sinatra-contrib"
27
27
28
28
spec . add_runtime_dependency "server_metrics"
29
- spec . add_runtime_dependency "sinatra"
29
+ # spec.add_runtime_dependency "sinatra" # vendored for now
30
30
end
You can’t perform that action at this time.
0 commit comments