csc/Hanlon — pull request #144 by tjmcs (2014-08-08 19:50:15+00:00)
Title: Fixes #143 (Always starting Puma doesn't feel right...)

This changes the config.ru file so that it determines if the application was deployed as a WAR file or not. If so, then the application is started like we used to start it (using a simple "run" command in the config.ru file). If not, then it is assumed that the context (i.e. the base_path from the hanlon_server.conf file) should be used to define a `Rack::URLMap` between that context and our application. This ensures that the application starts up correctly under all of the servers we've tested it against (Puma, Trinidad, and Tomcat as a WAR file), and the same code should work for other servers as well.