SEO - sitemap

18 Jun 25

extended msp sitemap for dynamically named blog urls with

  Blog.published.each do |blog|
    add public_blog_path(blog.slug), :lastmod => blog.updated_at
  end
and
$ heroku run rake sitemap:refresh
However this did not ultimately work as Heroku’s filesystem is not persistent, so sitemap.xml is generated but not saved.
Temporarily had to create the sitemap locally (adding the production blog slugs manually.
Long term solution -  store the sitemap on cloud storage (like Amazon S3).