Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (16 sloc) 572 Bytes
require File.expand_path(File.dirname(__FILE__) + '/app/boot')
require 'sprockets'
require 'resque/server'
Resque::Server.class_eval do
use Rack::Auth::Basic do |login, password|
login == 'admin' && password == ENV["PASSWORD"].to_s
end
end
stylesheets = Sprockets::Environment.new
stylesheets.append_path 'app/frontend/styles'
javascripts = Sprockets::Environment.new
javascripts.append_path 'app/frontend/scripts'
map('/resque') { run Resque::Server.new }
map("/css") { run stylesheets }
map("/js") { run javascripts }
map('/') { run Hopper::App }
Jump to Line
Something went wrong with that request. Please try again.