SitemapGenerator::Sitemap.default_host = "http://your_site.com" SitemapGenerator::Sitemap.sitemaps_host = "https://BUCKET_NAME.s3.amazonaws.com/" SitemapGenerator::Sitemap.public_path = 'public/' SitemapGenerator::Sitemap.sitemaps_path = 'sitemaps/' SitemapGenerator::Sitemap.adapter = SitemapGenerator::WaveAdapter.new SitemapGenerator::Sitemap.create do posts = Post.where("published=?", true) post