Permalink
Browse files

Add a Gemfile, empty templates dir and some other small tweaks to

support Heroku
  • Loading branch information...
1 parent bcce0ee commit f2a1df96413b032efdbb95115cefbb2703465579 @ripienaar committed Oct 8, 2011
Showing with 5 additions and 2 deletions.
  1. +2 −0 Gemfile
  2. +1 −1 config.ru
  3. +1 −0 graph_templates/dashboards/README.md
  4. +1 −1 lib/gdash/sinatra_app.rb
View
@@ -0,0 +1,2 @@
+source 'http://rubygems.org'
+gem 'sinatra'
View
@@ -10,6 +10,6 @@ set :run, false
#$stdout.reopen(log)
#$stderr.reopen(log)
-templatedir = File.join(File.dirname(__FILE__), "graph_templates")
+templatedir = File.join(File.expand_path(File.dirname(__FILE__)), "graph_templates")
run GDash::SinatraApp.new("http://graphite.example.net/", templatedir, "My Dashboard")
@@ -0,0 +1 @@
+Placeholder for dashboards
View
@@ -35,7 +35,7 @@ def initialize(graphite_base, graph_templates, title="Graphite Dashboard", prefi
set :static, true
set :views, "views"
- set :public, "public"
+ set :public_folder, "public"
get '/' do
if @dash_site.list.empty?

0 comments on commit f2a1df9

Please sign in to comment.