don't use a rails method in a pre-rails environment
This commit is contained in:
parent
4150a89eb8
commit
2fcf729f64
1 changed files with 4 additions and 1 deletions
|
|
@ -40,7 +40,10 @@ AppConfig ||= Configurate::Settings.create do
|
||||||
|
|
||||||
extend Configuration::Methods
|
extend Configuration::Methods
|
||||||
|
|
||||||
if rails_env == "production" && (environment.certificate_authorities.blank? || !File.file?(environment.certificate_authorities.get))
|
if rails_env == "production" &&
|
||||||
|
(environment.certificate_authorities.nil? ||
|
||||||
|
environment.certificate_authorities.empty? ||
|
||||||
|
!File.file?(environment.certificate_authorities.get))
|
||||||
$stderr.puts "FATAL: Diaspora doesn't know where your certificate authorities are. Please ensure they are set to a valid path in diaspora.yml"
|
$stderr.puts "FATAL: Diaspora doesn't know where your certificate authorities are. Please ensure they are set to a valid path in diaspora.yml"
|
||||||
Process.exit(1)
|
Process.exit(1)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue