Have to remove the environment name from ARGV or IRB will freak out

上级 8665c754
......@@ -25,7 +25,7 @@ def start
opt.parse!(ARGV)
end
if env = ARGV.first
if env = ARGV.pop
ENV['RAILS_ENV'] = ENVIRONMENTS.find { |e| e.index(env) } || env
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册