-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Publishing to Netlify #36
Comments
Wooo regular expressions for redirects: blog/(\w+)-(\w+)-(\w+)(.*) And then pasted into Google Sheets. (Which we learned from Practical Computing for Biologists) |
We've just published our site with Quarto and not Blogdown! 🎉 We did this ultimately via Publish from GitHub although we first tried via Quarto Publish Command However, our redirects aren't working on netlify, and we've been troubleshooting for awhile. The site is up and the 10 Redirect Rules have been processing: But we get 404 errors – and not from the Here are our redirects: https://github.com/Openscapes/website-new/blob/main/_redirects And we have a full line-up ready here: https://github.com/Openscapes/website-new/blob/main/redirects-list We actually have aliases is most webpage yaml front matter for blog posts (which is the vast majority of redirects) but that didn't work so we saw the tip in the redirects documentation to use the |
Hey @jules32 ! Just looking at this following your slack message. Here is what I noticed: From the screenshot you shared, I had the internal netlify adresse : https://dreamy-fudge-e71879.netlify.app/ So I tried to check the 404.html page there: https://dreamy-fudge-e71879.netlify.app/404.html and it is working. Same for non existing page: https://dreamy-fudge-e71879.netlify.app/notexisting and same for one of your redirect: https://dreamy-fudge-e71879.netlify.app/approach-guide/ So I wonder: did you checked that openscapes.org is correctly using your last deploy of netlify ? Hope it helps |
Hi @cderv, thank you so much!! That was absolutely what was going on – in our testing with Netlify, our domain openscapes.org was still attached to a different Netlify deploy, not the current functioning one with redirects. I've fixed this now, and will clean up those old deploys. Thank you so much for looking at this and helping out. We'll include this in the blog post about transitioning from blogdown too :) Have a good day! |
I've tested a few redirects that are aliases in specific blog posts, for example: https://openscapes.org/blog/2023-04-06-kyber/.
It is not redirecting. I am rebuilding the whole site with |
Good news is that the 404 page is showing up now though! Got this when trying the kyber post alias (https://www.openscapes.org/blog/2023/04/06/kyber/) |
I'm seeing that too @samanthacsik: the blogs are still not redirecting: https://openscapes.org/blog/2023/04/06/kyber/. I wonder if there should be .html redirect files created in https://github.com/Openscapes/website-new/tree/main/_site/blog? |
Further sleuthing: I also get a 404 when trying from the Netlify URL (which I renamed to dreamy-solstice: https://dreamy-solstice-e71879.netlify.app/blog/2023/04/06/kyber/ |
@jules32 maybe we try a |
to test, I think we could try something like:
|
@samanthacsik that did it: https://github.com/Openscapes/website-new/blob/main/netlify.toml 🎉 !! woo!
Would you please be able to add the other 140 posts from the |
WOWOWOW!! Yes can do! |
Thank you! |
One other thing to note about redirects/publishing: https://openscapes.org/code-of-conduct/ returns this: Whereas https://openscapes.org/code-of-conduct without the trailing |
Formatting list of redirects for
|
Thanks for documenting this all Sam! Let me know if you'd like me to test anything when you merge to main . Edited - Just saw your slack message. I'll build locally first! |
I merged #37 to main and did a few quick tests – my first few spot-checks worked, I think we might be set! Success testing:
@samanthacsik , I think we're ready for the events! Thank you! Note for @stefaniebutland as we keep spot-checking/poking around: |
@samanthacsik when you've done the events and merged to main, will you tag Stef here and she'll help do final spot-checks for broken links. Thank you! |
Summer solstice with @samanthacsik
Current Netlify setup
~ https://app.netlify.com/sites/sad-williams-fa509f/settings/deploys~ On further inspection, it looks like openscapes.org deploys from hardcore-borg-58bfb4:
publishes from https://github.com/openscapes/website
Quarto publish
Following https://quarto.org/docs/publishing/netlify.html#publish-command:
quarto publish netlify
created https://app.netlify.com/sites/gleaming-biscochitos-2c8aab/overviewwooo
Goodbye
Hello
The text was updated successfully, but these errors were encountered: