lib/daiku/_app/config.ru.tt in daiku-0.0.12 vs lib/daiku/_app/config.ru.tt in daiku-0.1.0
- old
+ new
@@ -11,25 +11,15 @@
require 'boot'
Bundler.require(:default, :web)
require './app'
# middleware stack
-use Honeybadger::Rack::ErrorNotifier
if %w(production staging).include? ENV['RACK_ENV']
use Rack::SSL, hsts: { subdomains: true }
end
use Rack::Cache, metastore: Dalli::Client.new, entitystore: Dalli::Client.new(nil, value_max_bytes: 10485760)
use Rack::Deflater
use Rack::Runtime
# make the jump
-run App
+run app
-<% if @with_sidekiq -%>
-require 'sidekiq/web'
-map '/sidekiq' do
- Sidekiq::Web.use Rack::Auth::Basic do |username, password|
- username == ENV['AUTH_USERNAME'] && password == ENV['AUTH_PASSWORD']
- end
- run Sidekiq::Web
-end
-<% end -%>