Skip to content

Instantly share code, notes, and snippets.

@maxloncar
Last active November 17, 2022 12:30
Show Gist options
  • Save maxloncar/25f53c21c245dcf197e683242d824642 to your computer and use it in GitHub Desktop.
Save maxloncar/25f53c21c245dcf197e683242d824642 to your computer and use it in GitHub Desktop.
SitemapGenerator::Sitemap.sitemaps_path = "sitemaps/" //find the folder in the S3 bucket
SitemapGenerator::Sitemap.adapter = SitemapGenerator::AwsSdkAdapter.new(ENV.fetch("S3_BUCKET_NAME"),

aws_access_key_id: ENV.fetch("AWS_ACCESS_KEY_ID"),
aws_secret_access_key: ENV.fetch("AWS_SECRET_ACCESS_KEY"),
region: ENV.fetch("AWS_REGION")
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment