hey hey, regardin the sitemap article: <
# general
n
hey hey, regardin the sitemap article:
l
yes...
I did this in one of my sites
because you know, you might have multi-servers
so you'll need to run the cron job of updating on multiple server
so I'm generating everytime someone asks for it
since anyway, google does it once every other day
so basically you'll need to run sidekiq on ALL the servers where this is running on
and usually sidekiq / crons / services are on a separate server than the actual web server
l
awesome!
thank you @narrow-electrician-89982
n
sure thing ❤️
l
I'll ping @enough-shoe-92253 to backfill this. he's the wordsmith around here
n
I actually researched a lot before figuring out what's the "best" way of doing it on distributed servers 😂
and couldn't find a reasonable solution, so I did it like this
e
Hey Roc, thanks for the question. Correct me if I'm wrong please, could you achieve the same behavior by having one server generate the sitemap and have it uploaded to S3 like in this section of the article: https://avohq.io/blog/sitemap-for-rails-applications#hosting-a-sitemap-in-the-cloud
For this to work properly, a redirection from our site to the AWS URL works better because Google Search Console sometimes doesn't like having sitemaps in domains that are not "directly" ours. I don't know if it makes sense
n
hey hey! sorry just saw that, crazy last week. yes that also works, but also depends on the cron job that you're running; this is why I thought of having it "live" when someone is requesting the sitemap instead of running
one
job every
x time