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

Version Path
3mix-castronaut-0.5.0.2 app/config.ru
masover-castronaut-0.4.4.4 app/config.ru
masover-castronaut-0.4.4.5 app/config.ru
masover-castronaut-0.5.0.1 app/config.ru
p8-castronaut-0.6.1.1 app/config.ru
relevance-castronaut-0.4.1 app/config.ru
relevance-castronaut-0.4.2 app/config.ru
relevance-castronaut-0.4.3 app/config.ru
relevance-castronaut-0.4.4 app/config.ru
relevance-castronaut-0.4.5 app/config.ru
relevance-castronaut-0.4.6 app/config.ru
relevance-castronaut-0.5.0 app/config.ru
relevance-castronaut-0.5.1 app/config.ru
relevance-castronaut-0.5.2 app/config.ru
relevance-castronaut-0.5.3 app/config.ru
relevance-castronaut-0.5.4 app/config.ru
relevance-castronaut-0.6.0 app/config.ru
relevance-castronaut-0.6.1 app/config.ru
relevance-castronaut-0.7.4 app/config.ru
relevance-castronaut-0.7.5 app/config.ru