diff options
Diffstat (limited to 'config/boot.rb')
-rw-r--r-- | config/boot.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/config/boot.rb b/config/boot.rb index 128fe7645..53fbef5e6 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -1,5 +1,15 @@ # Don't change this file. Configuration is done in config/environment.rb and config/environments/*.rb +# Hmmm, that's a bit daft - 'production' needs setting not only in the web +# server, it also needs setting in all the scripts, so a central place seems +# better. Look for a config/rails_env file, and read stuff from there if +# it exists. Put just a line like this in there: +# ENV['RAILS_ENV'] = 'production' +rails_env_file = File.join(File.dirname(__FILE__), 'rails_env.rb') +if File.exists?(rails_env_file) + require rails_env_file +end + unless defined?(RAILS_ROOT) root_path = File.join(File.dirname(__FILE__), '..') @@ -42,4 +52,4 @@ unless defined?(Rails::Initializer) end Rails::Initializer.run(:set_load_path) -end
\ No newline at end of file +end |