Skip to content

Instantly share code, notes, and snippets.

@dimidd
Forked from steveh/shoryuken_with_rails.rb
Created February 13, 2017 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dimidd/9ead4fa439bf029dfac7165d34f24b57 to your computer and use it in GitHub Desktop.
Save dimidd/9ead4fa439bf029dfac7165d34f24b57 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require "bundler/setup"
require "shoryuken/cli"
environment_path = File.expand_path("config/environment.rb")
require environment_path if File.exist?(environment_path)
Rails.application.eager_load! if defined?(Rails)
begin
Shoryuken::CLI.instance.run(ARGV)
rescue => e
raise e if $DEBUG
STDERR.puts e.message
STDERR.puts e.backtrace.join("\n")
exit 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment