Skip to content

Commit

Permalink
added skylight
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilawal Hameed committed Apr 13, 2017
1 parent 2904627 commit e58cfb2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ source 'https://rubygems.org'
gem 'activemodel-serializers-xml'
gem 'bson_ext'
gem 'mongo_mapper'
gem 'skylight'
gem 'sinatra'
gem 'sinatra-contrib'
gem 'zippy'
Expand Down
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ GEM
tilt (>= 1.3, < 3)
sinatra-reloader (1.0)
sinatra-contrib
skylight (1.2.0)
activesupport (>= 3.0.0)
term-ansicolor (1.5.0)
tins (~> 1.0)
thor (0.19.4)
Expand Down Expand Up @@ -126,6 +128,7 @@ DEPENDENCIES
sinatra
sinatra-contrib
sinatra-reloader
skylight
zippy

RUBY VERSION
Expand Down
3 changes: 3 additions & 0 deletions config/skylight.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
# The authentication token for the application.
authentication: pE8A3xuWKldu4Wu-YJe7rJw9ILkBO1HSJ3WmUiOG0M0
5 changes: 5 additions & 0 deletions no_light_sinatra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ class NoLightSinatra < Sinatra::Base
MongoMapper.setup(ENVIRONMENTS, ENV['RACK_ENV'])
end

configure :production do
require "skylight/sinatra"
Skylight.start!
end

get '/' do
erb :default_page
end
Expand Down

0 comments on commit e58cfb2

Please sign in to comment.