Class: JRuby::Rack::AppEngineLayout
- Inherits:
-
WebInfLayout
- Object
- WebInfLayout
- JRuby::Rack::AppEngineLayout
- Defined in:
- lib/appengine-rack/boot.rb
Instance Method Summary collapse
Instance Method Details
#app_uri ⇒ Object
30 31 32 |
# File 'lib/appengine-rack/boot.rb', line 30 def app_uri @app_uri ||= '/' end |
#change_working_directory ⇒ Object
46 47 48 49 50 51 52 53 |
# File 'lib/appengine-rack/boot.rb', line 46 def change_working_directory if @rack_context.server_info.include?('Development') ENV['RACK_ENV'] = 'development' else ENV['RACK_ENV'] = 'production' end super end |
#gem_path ⇒ Object
34 35 36 |
# File 'lib/appengine-rack/boot.rb', line 34 def gem_path "bundler_gems/jruby/1.8" end |
#public_uri ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/appengine-rack/boot.rb', line 38 def public_uri @public_uri ||= begin path = @rack_context.getInitParameter('public.root') || '/public' path = "/#{path}" unless path =~ %r{^/} path.chomp("/") end end |