Fixed script/console to work with Windows (that requires the use of irb.bat) #418 [octopod]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@375 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 a133f3e6
*SVN*
* Fixed script/console to work with Windows (that requires the use of irb.bat) #418 [octopod]
* Fixed WEBrick servlet slowdown over time by restricting the load path reloading to mod_ruby
* Removed Fancy Indexing as a default option on the WEBrick servlet as it made it harder to use various caching schemes
......
......@@ -3,7 +3,12 @@
if ARGV[0]
ENV['RAILS_ENV'] = ARGV[0]
puts "Loading environment..."
exec "irb -r config/environment.rb -r irb/completion --noinspect"
if RUBY_PLATFORM =~ /mswin32/
irb_name = "irb.bat"
else
irb_name = 'irb'
end
exec "#{irb_name} -r config/environment.rb -r irb/completion --noinspect"
else
puts <<-HELP
......@@ -27,4 +32,4 @@ EXAMPLE
and config/environments/production.rb). You would now be ready to start requiring
models using require_dependency.
HELP
end
\ No newline at end of file
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册