lib/trinidad/server.rb in trinidad-0.5.0 vs lib/trinidad/server.rb in trinidad-0.6.0
- old
+ new
@@ -39,10 +39,10 @@
add_ssl_connector if ssl_enabled?
add_ajp_connector if ajp_enabled?
end
def create_web_app
- web_app = WebApp.new(@tomcat.addWebapp(@config[:context_path].to_s, @config[:web_app_dir]), @config)
+ web_app = WebApp.create(@tomcat.addWebapp(@config[:context_path].to_s, @config[:web_app_dir]), @config)
web_app.load_default_web_xml
web_app.add_rack_filter
web_app.add_context_loader
web_app.add_init_params