mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
18 lines
346 B
Ruby
Executable file
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
|