Changeset 5655
- Timestamp:
- 12/01/06 00:08:33 (2 years ago)
- Files:
-
- trunk/railties/CHANGELOG (modified) (1 diff)
- trunk/railties/lib/commands/console.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/railties/CHANGELOG
r5652 r5655 1 1 *SVN* 2 3 * Added one-letter aliases for the three default environments to script/console, so script/console p will load the production environment (t for test, d for development) [DHH] 2 4 3 5 * Fixed that script/server running against Mongrel should tail the proper log regardless of the environment [DHH] trunk/railties/lib/commands/console.rb
r4502 r5655 16 16 libs << " -r console_with_helpers" 17 17 18 ENV['RAILS_ENV'] = ARGV.first || ENV['RAILS_ENV'] || 'development' 18 ENV['RAILS_ENV'] = case ARGV.first 19 when "p": "production" 20 when "d": "development" 21 when "t": "test" 22 else 23 ARGV.first || ENV['RAILS_ENV'] || 'development' 24 end 25 19 26 if options[:sandbox] 20 27 puts "Loading #{ENV['RAILS_ENV']} environment in sandbox."