Skip to content

Commit

Permalink
Merge pull request #366 from jjaffeux/sinatra-reloader
Browse files Browse the repository at this point in the history
FEATURE: use Sinatra::Reloader in development
  • Loading branch information
jjaffeux committed Aug 4, 2017
2 parents 70aa8d5 + 13562b6 commit 3bf3e49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/onebox/web.rb
Expand Up @@ -12,6 +12,8 @@ class Web < Sinatra::Base
set :public_folder, Proc.new { "#{root}/assets" }
set :views, Proc.new { "#{root}/views" }
configure :development do
register Sinatra::Reloader
also_reload 'lib/**/*.rb'
enable :logging
end

Expand Down

0 comments on commit 3bf3e49

Please sign in to comment.