-
Notifications
You must be signed in to change notification settings - Fork 67
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
Domain and deployment #18
Comments
|
For the DNS migration, let's do that after DWeb but before we do any kind of public promotion about this resources. |
Thanks! Yeah let's definitely do it only after DWeb Summit |
It's after DWeb :) Let me know when it's a good time to migrate the DNS :) |
Cool -- could you give me access to the account so I can just do it in one go, without coordination? If there's anything else in the account, I can also initiate a traditional domain transfer, and you'd give me the token, and later confirm the transfer. Regarding deployment, you can do something like what PeerPad does: https://github.com/ipfs-shipyard/peer-pad/blob/master/ci/Jenkinsfile The ci/Jenkinsfile triggers the build, and Regardless of any branch/record mappings, you get the website built and the link displayed via Github's commit build status. |
It's my personal iwantmyname.com account so I'd prefer to just walk through the transfer in a private channel (Slack?).
I don't have any opinions about the deployment environment. I assume that, given I don't have access to infra, I won't be responsible for maintaining it, so whatever the people doing the work are comfortable with is fine with me. I would just prefer that:
|
Okay get me a transfer authorization code :) |
We'll have to wait until the domain is at least 60 days old: https://www.gandi.net/en/tlds/school/rules |
@lgierth @mikeal Is this issue still relevant? If so, has enough time passed for us to make the change and close out this issue? Note that since this issue was first opened, what used to be a repo within the ipfs-shipyard org became its own org, and there are now additional repos for local chapters, all of which need to be able to deploy using GH pages. I don't understand the context of this issue well enough to know whether this is relevant. We also now use "code" instead of "master" as the main branch of the protoschool.github.io repo because of the way Vue and GitHub pages need to work together to deploy. Note that we are launching publicly next Monday (Jan 14), so if we need to take any steps that could bring the site down I'd like to avoid that date please. 😂 |
This can wait, go launch the thing :):) |
Just chatted with @mburns to wrap my head around this one a bit more since it's not in my wheelhouse. I think there are two separate stages here which can be addressed separately:
|
@terichadbourne your assement here is correct. and...
Given that, we could do both! We can keep the site hosted on github, and all the free deployment automation that gets us including chapter pages, but we can also add the site to IPFS and update a DNSLink record during the CI build. Regular browsers would hit the github server. Users with companion installed would fetch the site via IPFS, and those that wanted to pin the site locally could do so with a |
Thanks @olizilla - good to know we could potentially have the best of both worlds when the time comes. If someone's browser tried to access the IPFS-hosted site and failed because of gateway issues, would there be any way to say to them "hey, wanna try getting this from that old-school internet"? |
Merging some conversation from #274 into this issue and closing that one in favor of continuing the convo here. Some relevant notes from that thread:
|
Update on IPFS deployment@andyschwab deployed to fleek so we could have the option to deploy to IPFS in the future, but the build is failing most likely because of our new use of the
So I'm guessing we'd have to tweak the build settings with a docker image to make this work (Puppeteer's Troubleshooting). For now we will move to netlify because of time constraints to work in this issue, but in the future we should address this. |
Couple of quick new and old updates here:
Left for this issue is a transition to hosting on IPFS via Fleek, which isn't urgent but has a couple of hurdles to overcome as noted in @zebateira's previous comment. |
Additional note: when you're ready to host on IPFS, Fleek has offered to help develop a custom Docker image to support this use case. |
@andyschwab A few questions about Fleek and IPFS hosting before we pull the trigger...
|
Great questions. I'll answer to the best of my ability! TLDR: Most users will get exactly the same experience they get now. The users that may get a different experience will be those that are using IPFS Companion or intentionally accessing the site through an IPFS Gateway - but presumably they know what they're asking for.
LocalStorage considerations are more interesting. Again, unless you're already using IPFS Companion or access sites through IPFS, this is a non-issue. Most users will use Web2 tech, and it will function identically to how it does now. However, when accessed over IPFS, there are two considerations: First, the URL will depend on which gateway you access the site through (local, dweb.link, ipfs.io/ipfs, etc.). So long as you use the same gateway, all should be well - in the short term, at least. Second, over the longer term - as the site is updated to new versions - the root CID will change. This will change the subdomain the browser sees when accessed through a local node or from dweb.link. @lidel is 1000x more knowledge about this challenge than I am, though, and may have some recommendations. When accessed through ipfs.io/ipfs or other non-subdomained gateway, it should still work - with the caveat that you're sharing userspace with every other site accessed this way (so maybe use very unique LocalStorage key names?). |
Thanks @andyschwab. Just to clarify, if we move to Fleek now, is there a box we can check that says "only serve this up on Web2, NOT on IPFS"? Or is it that as soon as we make the move, people who have IPFS Companion will get it on IPFS while others get it on Web2? If it's the former, we're probably ready to pull the trigger, but if it's the latter we may not be. |
One more IPFS Companion question that affects this... if no one shares a special web3 link with you, and you visit https://proto.school with Companion installed, does it automagically notice that it's possible to get it on IPFS and switch you to the "beautiful" IPFS URL? |
Was just reminded of an issue about redirects not working on IPFS. Unclear to me whether this problem would affect us on Fleek as well. |
@terichadbourne, @zebateira - are you currently dependent on redirects that functioned in the previous GitHub / Netlify build? There is no switch in Fleek to turn off IPFS. However, we can choose not to implement DNSlink, in which case IPFS Companion will not know it is available on IPFS. |
@andyschwab we are not 100% dependent on it in regards to functionality (we have client-side redirects), but we need them for SEO scoring purposes. Regarding DNSlink, I think we can proceed without it, and then when we are ready to make an IPFS version available we can discuss all the changes that need to be done in a new issue. |
Agreed. We're ready to transition to Fleek without DNSlink enabled and are not ready to let IPFS Companion users see the IPFS-hosted version. I just opened issue #548 to track things that need to be changed before we can have the site function properly on IPFS with DNSlink enabled. |
Got it. Taking a look at the Netlify config, the 404 redirects can be handled with an ipfs-404.html in the root. The functionality that would be missing is the chapters / events redirects (this could potentially be handled with manual redirect pages for each chapter). #548 looks good for tracking IPFS-readiness. |
Closing out this issue in favor of continued discussion in:
|
Just quick questions for keeping track of infra things:
The text was updated successfully, but these errors were encountered: