Skip to content

Commit

Permalink
Set Sinatra’s root to Adhearsion’s root
Browse files Browse the repository at this point in the history
This makes Sinatra properly serve “#{Adhearsion.root}/public” as the public files folder
  • Loading branch information
bklang committed Aug 10, 2016
1 parent 2cf78dc commit f156f9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/adhearsion/generators/app/templates/config.ru
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
require 'sinatra'

set :root, Adhearsion.root

get '/' do
'Hello world!'
end
Expand Down

0 comments on commit f156f9d

Please sign in to comment.