1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/bin/console

5 lines
224 B
Ruby

#!/usr/local/bin/ruby
ENV['RAILS_ENV'] = ARGV[0] || 'development'
puts "Loading environment: #{ENV['RAILS_ENV']}"
irb = RUBY_PLATFORM =~ /mswin32/ ? 'irb.bat' : 'irb'
exec "#{irb} -r config/environment.rb -r irb/completion"