Commits

Sean Wilkinson  committed 5bf6f81

Slight tweak to Rack config file to enable direct execution via `$ ruby config.ru`

  • Participants
  • Parent commits 19d14eb

Comments (0)

Files changed (1)

File src/rack-app/config.ru

 #   though, it serves its purpose -- with only 100 lines of source code ;-)
 #
 #                                                       ~~ (c) SRW, 24 Apr 2013
-#                                                   ~~ last updated 04 May 2013
+#                                                   ~~ last updated 06 May 2013
 
 require 'rubygems'
 require 'bundler'
 
 end
 
-Sinatra::Application.run!
+Sinatra::Application.run! unless __FILE__ == $0
 
 #-  vim:set syntax=ruby: