Skip to content

Instantly share code, notes, and snippets.

@steveh
Created January 25, 2017 19:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save steveh/7774092603d94353df709ba992c35067 to your computer and use it in GitHub Desktop.
Save steveh/7774092603d94353df709ba992c35067 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