Sha256: 704231913c8efc3d1cb50bfad987866151c6a0ec7d6fa7bbf8dc3bb8e44d958f
Contents?: true
Size: 660 Bytes
Versions: 21
Compression:
Stored size: 660 Bytes
Contents
Dir[File.dirname(__FILE__) + "/../vendor/**"].each do |dir| $LOAD_PATH.unshift(File.directory?(lib = "#{dir}/lib") ? lib : dir) end require 'sinatra' Sinatra::Application.default_options.merge!( :run => false, :env => :production ) require File.expand_path(File.join(File.dirname(__FILE__), '..', 'castronaut')) default_config = File.expand_path("../config/castronaut.yml") if File.exist?(default_config) Castronaut.config = Castronaut::Configuration.load(default_config) else STDERR.puts "Unable to locate configuration. Currently looking at #{default_config}." end require "config" require "controllers/application" run Sinatra.application
Version data entries
21 entries across 21 versions & 5 rubygems