提交 f1640a16 编写于 作者: J Joshua Peek

script/runner should require environment

上级 8f2d8f45
......@@ -36,8 +36,6 @@
ENV["RAILS_ENV"] = options[:environment]
RAILS_ENV.replace(options[:environment]) if defined?(RAILS_ENV)
Rails.initialize!
begin
if code_or_file.nil?
$stderr.puts "Run '#{$0} -h' for help."
......
<%= shebang %>
require File.expand_path('../../config/application', __FILE__)
require File.expand_path('../../../config/environment', __FILE__)
require 'rails/commands/runner'
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册