Fixed robots.txt so that preview is not crawlable
This commit is contained in:
parent
aaaabb17c6
commit
b89cad4ec4
@ -90,8 +90,7 @@ class ApplicationController < LinguaFrancaApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def robots
|
def robots
|
||||||
robot = is_production? && !is_test_server? ? 'live' : 'dev'
|
render :text => File.read("config/robots-#{Rails.env.production? ? 'live' : 'dev'}.txt"), :content_type => 'text/plain'
|
||||||
render :text => File.read("config/robots-#{robot}.txt"), :content_type => 'text/plain'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def humans
|
def humans
|
||||||
|
Loading…
x
Reference in New Issue
Block a user