mirror of
https://github.com/github/rails.git
synced 2026-02-07 20:54:57 -05:00
Fix script/server to use the environment given by the -e toggle
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2552 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -47,6 +47,8 @@ ARGV.options do |opts|
|
||||
end
|
||||
|
||||
ENV["RAILS_ENV"] = OPTIONS[:environment]
|
||||
RAILS_ENV.replace(OPTIONS[:environment]) if defined?(RAILS_ENV)
|
||||
|
||||
require RAILS_ROOT + "/config/environment"
|
||||
require 'webrick_server'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user