Permalink
Browse files

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
  • Loading branch information...
1 parent 4b72a4b commit 634da0f0102693fbb034b3b7b17808fa5afeb66a @jamis jamis committed Oct 13, 2005
Showing with 2 additions and 0 deletions.
  1. +2 −0 railties/lib/commands/server.rb
@@ -47,6 +47,8 @@
end
ENV["RAILS_ENV"] = OPTIONS[:environment]
+RAILS_ENV.replace(OPTIONS[:environment]) if defined?(RAILS_ENV)
+
require RAILS_ROOT + "/config/environment"
require 'webrick_server'

0 comments on commit 634da0f

Please sign in to comment.