-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alternative Prod Deployment options #307
Comments
Just listened to the last office hours, and I had to dig up this issue that was spoken of. First I must say the website looks awesome and is a huge upgrade to what's existing now! That being said I did hear that folks would like to practice the KISS principle and I do think having a CI job to push to a Linode is a bit overly complex for a hugo site. :) For example GitHub pages can statically hosts hugo with ease. If you back that by Cloudflare CDN it's basically distributed serverless at that point. I do have some experience in that realm so happy to help out. Here's an example of a small blog my wife and I maintain [1] https://everydayna.art/ Managing cloudflare with terraform is fairly straight forward as well. Hope all is well. Anthony |
I don't know what it was that he was referring to, but one example of where having a webserver is better (if we didn't have cloudflare in front of the site (because they let you handle redirects as well using them IIRC)), and were just on GH pages is this situation: #300 (comment) The cloudfront + GH pages w/hugo is a pretty slick setup I've done it myself for this project that we built out for a client. We also added the NetlifyCMS on top as well so they didn't have to dig into MD + front matter of hugo (talk about that a bit here). I will say though, without @ironicbadger's current deployment we won't be able to do self-hosted previews (as discussed here). So, if we're trying to go with self-hosting things then GH pages would be out of the question. I honestly thought we'd gone with the self-hosted solution just because that's what JB had wanted (since they currently self-host on top of wordpress). |
I think pushing previews on a server makes more sense IMO.
That would make sense it would be good to know that limit. Overall I think pushing to linode is okay if there's a usecase, and regardless of where it's hosted I think it should be fronted by cloudflare. I suppose it's good to know the options |
To be perfectly honest, I do not want to be on the critical path at 2am. Self-hosted is nice and got us unblocked in the beginning but if we can concoct a more performant, flexible solution I'm all ears. It's also worth noting that thanks to sponsorship Linode costs are not a concern for us. Whereas 3rd party services might be. This would be ultimately up @ChrisLAS to decide on as it will be his sats we are spending! |
In that case at some point this weekend I can submit a PR for GH pages enablement and temporarily host it on yet another sub domain (or the one GitHub) provides. to see what's broke. The cost aspect is a great point @ironicbadger and something I forgot to add in my OP but thought about |
That'd be awesome @anthr76 ! I know I personally would prefer GH pages because it's essentially serverless (like you'd mention). Also, because it's so hands off for deployment and management 😁 Also, whenever your doing this IIRC there are going to be some setting which need to be tweaked in the repo. So if you don't mind documenting those steps you do in the |
Maybe deploying the site on cloudflare pages/workers could work well. Also we had discussed using Netlify at #173 |
I was mainly think about using deploy previews for netlify, not actually deploying to netlify. Technically they could be an option as well, but I think they only give you a certain amount of build minutes a month... 🤔 So, I don't know if I'd recommend deploying there. Also, posting links/summaries to a convo mentioned in matrix a while back.
|
From what I gather, the idea of being able to roll back a production image relatively easily sounds like a definite benefit. It'll be in deciding if the additional complexity is worthwhile? |
It's probably worth just using a hosting provider like Netlify, CF workers/pages, or Vercel. The simplicity and featureset just unmatched imo. |
Originally posted by @ironicbadger in #244 (comment)
The text was updated successfully, but these errors were encountered: