Print warnings on stderr, where they belong.
This commit is contained in:
parent
20efe06ad5
commit
22a696bcf8
2 changed files with 3 additions and 3 deletions
|
|
@ -13,4 +13,4 @@ if defined?(PhusionPassenger)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
puts "Security Warning (11/29/2010): if you are using Diaspora on the internet, please make sure your mongodb is started with '--bind 127.0.0.1' or you are using a database password"
|
$stderr.puts "Security Warning (11/29/2010): if you are using Diaspora on the internet, please make sure your mongodb is started with '--bind 127.0.0.1' or you are using a database password"
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ class AppConfig
|
||||||
all_envs = load_config_yaml "#{Rails.root}/config/app_config.yml"
|
all_envs = load_config_yaml "#{Rails.root}/config/app_config.yml"
|
||||||
all_envs = load_config_yaml "#{Rails.root}/config/app_config.yml.example" unless all_envs
|
all_envs = load_config_yaml "#{Rails.root}/config/app_config.yml.example" unless all_envs
|
||||||
else
|
else
|
||||||
puts "WARNING: No config/app_config.yml found! Look at config/app_config.yml.example for help."
|
$stderr.puts "WARNING: No config/app_config.yml found! Look at config/app_config.yml.example for help."
|
||||||
all_envs = load_config_yaml "#{Rails.root}/config/app_config.yml.example"
|
all_envs = load_config_yaml "#{Rails.root}/config/app_config.yml.example"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue