Sha256: bc2c2fb07d5a567dc3c973bff909930c4ddd4b647e38e8fc760e001ce0980c52
Contents?: true
Size: 597 Bytes
Versions: 6
Compression:
Stored size: 597 Bytes
Contents
configure do root = File.expand_path(File.join(File.dirname(__FILE__), '..', 'app')) app_file = "#{root}/controllers/application.rb" 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 :root, root set :app_file, app_file set :views, views set :public, pub_dir set :logging, true set :raise_errors, true end
Version data entries
6 entries across 6 versions & 3 rubygems