Guest User

Untitled

a guest
Feb 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. root_dir = File.dirname(__FILE__)
  2.  
  3. if !defined?(Sinatra)
  4. $:.unshift "#{root_dir}/vendor/sinatra/lib" if File.directory?("#{root_dir}/vendor/sinatra")
  5. end
  6.  
  7. require 'rubygems'
  8. require 'sinatra'
  9.  
  10. Sinatra::Application.default_options.merge!(
  11. :views => File.join(root_dir, 'views'),
  12. :app_file => File.join(root_dir, 'app.rb'),
  13. :run => false,
  14. :env => ENV['RACK_ENV'].to_sym
  15. )
  16.  
  17. require 'app'
Add Comment
Please, Sign In to add comment