Skip to content

Commit

Permalink
Add :root application option to work in different working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Jun 7, 2016
1 parent a72a08f commit 77e7515
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions giftsmas.rb
Expand Up @@ -21,6 +21,8 @@

module Giftsmas
class App < Roda
opts[:root] = File.dirname(__FILE__)

use Rack::Session::Cookie, :secret=>SECRET
plugin :csrf
plugin :static, %w'/favicon.ico'
Expand Down

0 comments on commit 77e7515

Please sign in to comment.