I create a sitemap for my site and temporarily save it in the tmp folder, which will then be uploaded to my Amazon AWS account. I am using a Sitemap generator and fog stones to help me. While I have it ...
SitemapGenerator::Sitemap.default_host = "http://mycoolapp.com/"
SitemapGenerator::Sitemap.adapter = SitemapGenerator::S3Adapter.new
SitemapGenerator::Sitemap.sitemaps_host = "http://#{ENV['FOG_DIRECTORY']}.s3.amazonaws.com/"
SitemapGenerator::Sitemap.sitemaps_path = '/'
SitemapGenerator::Sitemap.create do
add '/home'
add '/about'
add '/contact'
end
Whenever I run heroku run rake sitemap:create, I get the following error ...
In '/app/tmp/':
511
rake aborted!
Read-only file system - /sitemap.xml.gz
I am really at a loss why it does not work. I even got to the point of creating a tmp folder by running Rails.root.join('tmp')as an initializer. Any help in resolving this would be greatly appreciated.
source
share