mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-11 00:02:05 -05:00
239cbd2d58
replaced every `and` by `&&` and every `or` by `||`
15 lines
No EOL
547 B
Ruby
15 lines
No EOL
547 B
Ruby
# Check that the app is configured correctly. Raise some helpful errors if something is wrong.
|
|
|
|
if Rails.env.production? && ['localhost', 'production.localhost'].include?(Discourse.current_hostname)
|
|
puts <<END
|
|
|
|
Discourse.current_hostname = '#{Discourse.current_hostname}'
|
|
|
|
Please update the host_names property in config/database.yml
|
|
so that it uses the hostname of your site. Otherwise you will
|
|
experience problems, like links in emails using #{Discourse.current_hostname}.
|
|
|
|
END
|
|
|
|
raise "Invalid host_names in database.yml"
|
|
end |