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

20 lines
359 B
Text
Raw Normal View History

2012-01-16 19:14:47 -05:00
#!/usr/bin/env ruby
# Quiet some warnings we see when running in warning mode:
# RUBYOPT=-w bundle exec sidekiq
$TESTING = false
$CELLULOID_DEBUG = false
require_relative '../lib/sidekiq/cli'
2012-01-16 19:14:47 -05:00
begin
cli = Sidekiq::CLI.instance
2012-02-12 23:48:13 -05:00
cli.parse
2012-01-16 19:14:47 -05:00
cli.run
rescue => e
raise e if $DEBUG
STDERR.puts e.message
2012-02-12 23:48:13 -05:00
STDERR.puts e.backtrace.join("\n")
2012-01-16 19:14:47 -05:00
exit 1
end