Sha256: cbc315bccf515466b4d967e20bd7d3908274c4bccaadb6865d432cf435341fd4
Contents?: true
Size: 1.21 KB
Versions: 3
Compression:
Stored size: 1.21 KB
Contents
<%= shebang "./bin/shotgun", %w[-p 4000 -s thin] %> # encoding: utf-8 # Shebang: # - bin/shotgun # - bin/rackup # Try to keep this file as small as possible. # You should put here rack-specific stuff which means mainly # middleware initialization (Rack::Builder#use) and setting # rack endpoint (Rack::Builder#run). Middleware setup should be placed into rackup.rb # In fact # - It's a stupid idea to evaluate the whole file in context of a Rack::Builder instance # - You can't use __END__ in config.ru because of the eval # - File vs. Rack::File unless __FILE__.eql?("(eval)") require "init.rb" require "rackup.rb" else puts "~ Running config.ru #{self.inspect}" use Rango::Middlewares::Basic # <% if @warden %> # use Warden::Manager do |manager| # manager.default_strategies :password # # Rango::Controller has class method call which will call Rango::Controller.reroute(action), # # for example Login.route_to(:login) which will set login action of Login controller as default # # Internally it just rewrites env["rango.controller"] and env["rango.action"] to "Login", resp. "login" # manager.failure_app = Login # end # # <% end %> run lambda { |env| [200, Hash.new, ["hey"]] } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rango-0.2.3 | stubs/stack/content/config.ru.rbt |
rango-0.2.1 | stubs/stack/content/config.ru.rbt |
rango-0.2.1.pre | stubs/stack/content/config.ru.rbt |