1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[core] more consistent redirector for fog.io

This commit is contained in:
geemus 2011-05-13 14:21:06 -07:00
parent e0b8606d85
commit 3fde14cafa

View file

@ -204,9 +204,21 @@ task :docs do
)
end
redirecter = <<-HTML
<!doctype html>
<head>
<title>fog</title>
<meta http-equiv="REFRESH" content="0;url=http://fog.io/#{version}">
</head>
<body>
<a href="http://fog.io/#{version}">redirecting to lastest version => fog #{version}</a>
</body>
</html>
HTML
# write base index with redirect to new version
directory.files.create(
:body => '<!doctype html><head><script>window.location = "http://fog.io/' << version << '"</script></head></html>',
:body => redirecter,
:content_type => 'text/html',
:key => 'index.html',
:public => true