crimethinc / website

Ruby on Rails app that powers crimethinc.com
https://crimethinc.com
Creative Commons Zero v1.0 Universal
101 stars 31 forks source link

Figure out process for updating/uploading the sitemap.xml.gz #1192

Open veganstraightedge opened 5 years ago

veganstraightedge commented 5 years ago

Prior art:

https://crimethinc.com/sitemap.xml.gz 404s

I'm not sure if we ever actually had the sitemap up on the production site. We might've been waiting until we could figure out a way to not manually run a script and/or have to commit the .xml.gz to source control.

It would be amazing if someone could figure out how to do this at all and even better would be how to automate it with Heroku et al.

ghost commented 5 years ago

I feel this is something that could be auto-generated as far as the xml.gz file on deploy. Sequence would look like:

I use mostly vps/vm/metal but I can look into how Heroku works.. It's been 7 years :)

just1602 commented 1 year ago

@veganstraightedge, I was about to close this issue since all the previous parts are done. I try to generate the sitemap.xml.gz locally, it works, and I can download the file when I hit localhost:3000/sitemap.xml.gz, but when I hit crimethinc.com/sitemap.xml.gz I get a 404. Can you validate that sitemap:refresh is correctly execute when we deploy the app?