Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a Gemfile, empty templates dir and some other small tweaks to
support Heroku
  • Loading branch information
ripienaar committed Oct 8, 2011
1 parent bcce0ee commit f2a1df9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Gemfile
@@ -0,0 +1,2 @@
source 'http://rubygems.org'
gem 'sinatra'
2 changes: 1 addition & 1 deletion config.ru
Expand Up @@ -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")
1 change: 1 addition & 0 deletions graph_templates/dashboards/README.md
@@ -0,0 +1 @@
Placeholder for dashboards
2 changes: 1 addition & 1 deletion lib/gdash/sinatra_app.rb
Expand Up @@ -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?
Expand Down

0 comments on commit f2a1df9

Please sign in to comment.