Sha256: 5c255c0f6b0432224dec5ea938fb0d13c15170bd30fca5f93c9ff631349eb72e
Contents?: true
Size: 679 Bytes
Versions: 19
Compression:
Stored size: 679 Bytes
Contents
# This file is used by Rack-based servers to start the application. require ::File.expand_path('../config/environment', __FILE__) # Disable buffering for real time logging, see: https://devcenter.heroku.com/articles/logging#writing-to-your-log $stdout.sync = true # Optional Basic Auth - Enabled if BASIC_AUTH_PASSWORD is set. User is optional (any value will be accepted). BASIC_AUTH_USER = ENV['BASIC_AUTH_USER'] BASIC_AUTH_PASSWORD = ENV['BASIC_AUTH_PASSWORD'] if BASIC_AUTH_PASSWORD use Rack::Auth::Basic do |username, password| password == BASIC_AUTH_PASSWORD && (BASIC_AUTH_USER.blank? || username == BASIC_AUTH_USER) end end run AppPrototype::Application
Version data entries
19 entries across 17 versions & 1 rubygems