lib/ruby_app/templates/application/config.ru in RubyApp-0.0.51 vs lib/ruby_app/templates/application/config.ru in RubyApp-0.0.52
- old
+ new
@@ -17,26 +17,24 @@
use Rack::ShowExceptions
use Rack::Session::Pool
use Rack::Reloader
use Rack::ContentLength
+use RubyApp::Rack::Application, :application_class => _APPLICATION_UPCODE_::Application,
+ :session_class => _APPLICATION_UPCODE_::Session,
+ :log_path => File.join(_APPLICATION_UPCODE_::ROOT, %w[log application.log]),
+ :configuration_paths => File.join(_APPLICATION_UPCODE_::ROOT, %w[config.yml]),
+ :default_language => :en,
+ :translations_paths => File.join(_APPLICATION_UPCODE_::ROOT, %w[translations])
+run RubyApp::Rack::Route.new
+
map '/favicon.ico' do
run Rack::File.new(File.join(RubyApp::ROOT, %w[resources favicon.ico]))
end
map '/ruby_app/resources' do
run Rack::File.new(File.join(RubyApp::ROOT, %w[resources]))
end
map '/_APPLICATION_DOWNCODE_/resources' do
run Rack::File.new(File.join(_APPLICATION_UPCODE_::ROOT, %w[resources]))
-end
-
-map '/' do
- use RubyApp::Rack::Application, :application_class => _APPLICATION_UPCODE_::Application,
- :session_class => _APPLICATION_UPCODE_::Session,
- :log_path => File.join(_APPLICATION_UPCODE_::ROOT, %w[log application.log]),
- :configuration_paths => File.join(_APPLICATION_UPCODE_::ROOT, %w[config.yml]),
- :default_language => :en,
- :translations_paths => File.join(_APPLICATION_UPCODE_::ROOT, %w[translations])
- run RubyApp::Rack::Route.new
end