mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 22:33:37 +08:00
12 lines
232 B
Ruby
12 lines
232 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class ProblemCheck::HostNames < ProblemCheck
|
||
|
self.priority = "low"
|
||
|
|
||
|
def call
|
||
|
return no_problem if %w[localhost production.localhost].exclude?(Discourse.current_hostname)
|
||
|
|
||
|
problem
|
||
|
end
|
||
|
end
|