Sha256: 929823ff2170f001102429646e485c6b3ddc03752988e0686a76d06712c5256e

Contents?: true

Size: 725 Bytes

Versions: 2

Compression:

Stored size: 725 Bytes

Contents

require "rubygems"
require "bundler"
#require "bundle gems"
ENV["RACK_ENV"] ||= "development"
Bundler.require(:default, ENV["RACK_ENV"].to_sym)
# init database
DB = Sequel.sqlite("./db/#{ENV["RACK_ENV"]}.db")
# init sinatra
set :sessions, true
set :root, File.expand_path(".")
set :views, settings.root + "/app/views"
# assetpack support
assets do
  css_compression :sass
  js_compression  :uglify

  serve "/js", :from => "app/assets/js"
  serve "/css", :from => "app/assets/css"
  serve "/img", :from => "app/assets/img"

  js :application, [
    "/js/*.js"
  ]

  css :application, [
    "/css/*.css"
  ]
end
# require sinatra files
Dir.glob "./{lib,app/models,app/helpers,app/controllers}/**/*.rb" do |f|
  require f
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simba-0.0.2 lib/simba/base_app/config/boot.rb
simba-0.0.1 lib/simba/base_app/config/boot.rb