Created
January 25, 2017 19:43
-
-
Save steveh/7774092603d94353df709ba992c35067 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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