1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/bin/sidekiq
2012-01-24 18:07:18 -08:00

18 lines
346 B
Ruby
Executable file

#!/usr/bin/env ruby
begin
require 'sidekiq/cli'
rescue LoadError
# Better way to do this in dev?
$LOAD_PATH << File.expand_path(File.dirname(__FILE__) + '/../lib') if File.exist?("../lib/sidekiq.rb")
require 'sidekiq/cli'
end
begin
cli = Sidekiq::CLI.new
cli.run
rescue => e
raise e if $DEBUG
STDERR.puts e.message
exit 1
end