Sha256: 787a5f79a6ea3054a2b2c6f80e4517b9953512d2dd0ece7bb5f92706c4c83051

Contents?: true

Size: 539 Bytes

Versions: 15

Compression:

Stored size: 539 Bytes

Contents

configure do
  root = File.expand_path(File.join(File.dirname(__FILE__), '..', 'app'))
  views = "#{root}/views"
  pub_dir = "#{root}/public"

  Castronaut.logger.debug "Sinatra Config - setting root path to #{root}"
  Castronaut.logger.debug "Sinatra Config - setting views path to #{views}"
  Castronaut.logger.debug "Sinatra Config - setting public path to #{pub_dir}"

  set_options :root => root,
              :views => views,
              :public => pub_dir,
              :logging => true,
              :raise_errors => true
end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
3mix-castronaut-0.5.0.2 app/config.rb
masover-castronaut-0.4.4.4 app/config.rb
masover-castronaut-0.4.4.5 app/config.rb
masover-castronaut-0.5.0.1 app/config.rb
relevance-castronaut-0.4.1 app/config.rb
relevance-castronaut-0.4.2 app/config.rb
relevance-castronaut-0.4.3 app/config.rb
relevance-castronaut-0.4.4 app/config.rb
relevance-castronaut-0.4.5 app/config.rb
relevance-castronaut-0.4.6 app/config.rb
relevance-castronaut-0.5.0 app/config.rb
relevance-castronaut-0.5.1 app/config.rb
relevance-castronaut-0.5.2 app/config.rb
relevance-castronaut-0.5.3 app/config.rb
relevance-castronaut-0.5.4 app/config.rb