diff options
-rw-r--r-- | config/boot.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config/boot.rb b/config/boot.rb index 4489e5868..a810be358 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -4,3 +4,12 @@ require 'rubygems' ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) + +# TODO: Remove this. This is a hacky system for having a default environment. +# It looks for a config/rails_env.rb file, and reads stuff from there if +# it exists. Put just a line like this in there: +# ENV['RAILS_ENV'] = 'production' +rails_env_file = File.expand_path(File.join(File.dirname(__FILE__), 'rails_env.rb')) +if File.exists?(rails_env_file) + require rails_env_file +end |