Just how portable is your web site? Could you switch hosting providers in an hour? In a day? Would it take you a week?
You should think about it.
Also posted to Bluesky.
97 replies
A while back I accidentally wiped two ancient sites. Had no original source. Grabbed it from archive.org and got them back up and running. Then promptly forgot where I was hosting them!
I love archive.org so much
the library of Alexandria for our time.
@zachleat I just use a bare Linux VPS for most of my websites, but I do have it hardened a fair bit, so I'd have to harden my new VPS when switching over too. I have a deployment bash script with my hardening stuff in there, and none of my code is tied into my current hosting provider, so it shouldn't be hard.
@mintydev if it’s too hard you did too much hardening
@zachleat Very portable: it's a folder full of files!
I do regular checkups to make sure my depedencies to build and deploy are limited, intentional and as far on the outskirts (ie. additional/optional rather than core functions) as possible.
@hamatti I love this! Regular checkups!
@zachleat I will be distributing the next version of my website exclusively on flash drives for maximum portability.
@ardouglass just scatter them on the ground, good distribution model
@zachleat think of it less like littering e-waste and more like marketing my personal brand.
@zachleat there’s gotta be a correlation between:
- how fast you can switch hosting providers, and
- how performant your site is for end users@jimniels hah! I want to believe (but I have doubts 😅)
@zachleat mine's just a couple of static HTML files, so it could probably be served even from my dishwasher if I wanted to 🤣
@devlead gotta sanitize that HTML
@zachleat Once worked on a website for a cryptocurrency (low point of my career, took 9 months off after to recover) and this was very much a consideration, for reasons you can well imagine. 🤨
@paulrobertlloyd regulatory worries? or security concerns?
@zachleat Regulatory, mainly. Concern was that they might need to change the country their website was hosted in at short notice 😅
If it's WordPress, @roots.io tools can help you keep it in version control, and this set of actions and workflows can help you make "releases" of the site (complete with database and uploads backup).
These tools took moving WordPress sites from a week-long cross-your-fingers process to around 20min
Oh hey, I totally forgot about this one. This should still work to ease the transition from a traditional WordPress site to a @roots.io Bedrock structure.
Haven’t built on WP in years but the Roots folks always made it a joy
@zachleat Spinoff question: if your backend is JS-based, how fast can you switch JS runtimes?
@zachleat I currently rely on Netlify Forms, so I’d have to find an alternative for a contact form on one site. It only gets like… one hit per month, maybe, so if things were really desperate I’d make a new email account and put up a mailto link until I found an alternative provider.
The harder thing to change than hosting provider would be if I needed to replace GitHub, due to the integrations and widespread support.
That said, I’m primarily building static sites. Backends add complexity.
@sangster seems like a pretty good footprint!
@sangster this an option for you? https://letterbird.co/
-
What made you migrate from AWS and eventually drew you to Cloudflare? I am weighing options for web-hosting and it’s a bit overwhelming for a newbie.
@zachleat The power of static sites: Switching hosting providers takes hours at most. Redirect configuration is the only thing in my setup that is specific to the current provider. Everything else is just a bunch of HTML files, generated with Eleventy of course, CSS, and images.
@mvsde yes! when I moved my personal web site redirect config was a pain point too
@zachleat Which website, Zach?!?! (But yes, most of them I could move very quickly)
@cthos ALL OF THEM 😭 😱 😭 😱 😭 😱 😭 😱
@zachleat I've moved to hosting on BearBlog for my personal site - but I've confirmed their export is easy enough, I could 100% spin up a new 11ty site in a matter of a few hours with the data if I needed to (although I use that platform explicitly so I'm not messing with code or formatting on that site).
The website I maintain for an org as a hobby project, that's all 11ty and could be migrated in minutes like everyone else has said :D
Now, the sites I maintain professionally? Those are all on various CMS platforms and would be a nightmare to move...but I don't even want to think about that.
@roguefoam the CMS moat is real 😅
Excellent question! So I had to look up the TTL of my domain’s A record: 150 s.
Okay, okay, maybe add 15 min to set up a new server,
plus — obviously — the number of days until I notice my web site is down.Thanks @11ty.dev
@zachleat
Thanks to eleventy, our two main websites could be probably re-uploaded (old-style manual drag-and-drop here ;-) ) with no real editing needed in 5 minutes to half an hour depending on upload speed (due to the self-hosted videos).
We have zero external dependencies.Hosted in Germany they should be okay for now...
So it would mostly depend on provider switching speed... ;-)
@zachleat does it include the time required to remember the credentials to the ftp I used once 6years ago and never looked at since?
@bendelarre **YES** 😅
@zachleat yep great observation. One of the numerous software ilities is portability. In the webdev case there are oddities. I think many webdevs have become too accustomed to modern framework limits esp framework + hosting plays (vercel / Next side eye) means you must accept limited or no portability as the price of admission. It’s like a roach motel or Hotel California philosophy - devs can check in but they can’t check out. The weird part is many seem just fine with that!?!
@thomasapowell portability is never an urgent problem until it is VERY URGENT problem 😅
@zachleat it would take me about a month to gather the willpower to do it. Then it'd take like 15 minutes + however long it takes for DNS to update
@fantinel so about the same amount of time it takes me to write a medium length email
NGL, @coolify.io makes it super easy. Probably within a day:
- Setup new host
- install coolify with 1 .sh command
- connect my git repo
- deployI guess I'd also have to fiddle with dns, but @heyandras.dev has done a real good job on this :)
nice!
Yeah, give it a try some time. It supports all sorts of run times too.
I probably missed a step or two above, but in the theme or portability, when you own your own server and deployment software, it's really easy to move from one vps to another :)
💜
I extremely over-index on this... but the world keeps proving me right over and over that it's a good idea to have this kind of agility.
You’re doing it right! There is no such thing as “too portable”
a few minutes, depending on upload/download speeds and DNS
only because my site is fully static since it was generated with 11ty! thanks for making such a cool thing, I love plain html and css, but it's such a pain to do everything manually without such a nice static site generator
you’re very welcome!! 🙌
@zachleat A few hours (or less). It's a LAMP server with some extensions and cron jobs. My setup script spits out the configs for me to copy and paste. I got tired of the lack of portability inherent in writing against host-specific APIs.
A day, roughly. I know this because I had to when my previous host started redirecting URLs randomly to porn sites (!) I immediately bailed to Mythic Beasts, who I’ve been very happy with since :)
…WHAT
Yup. It was apparently upstream of them: my host used godaddy and they were the ones causing the problem. community.cloudflare.com/t/redirectin... has a record of it. But I was, not surprisingly, out the door as fast as my legs would carry me.
Not happy about it
that is incredibly *WILD*
Godaddy is the devil
Fun thought exercise. I'd have to rethink my contact form and find a new way to handle redirects, but aside from that (which wouldn't be a big deal), I could be moved in a lunch break, I think.
Honestly I'd spend *way* more time figuring out where to move than actually doing it.
Yes! It is something I discuss with my clients too. Prevent lock-in and choose wisely. There are still companies that offer a great 'first bill deal' and bet on it being too much of a hassle to leave so they rack up the pricing the next bill by 500% or more. At least separate services.
It would depend on how much time I need to spend pointing to new name servers.
Exactly this. But I also still have some apache hosting I could ftp the site to in 5 mins and then do the switch, so loads of options.
Never felt this resilient before #11ty.Also I am sort of interested in exploring a solar powered self hosted server one day for the shits and giggles.
Amazing 😍
It gets better - my personal site deploys to both Cloudflare and Netlify every time. I have immediate backup with a dns change if anything goes pants up.
I reckon piccalil.li could be in a new home and live within the hour because of cloudflare dns
This was one of the worst aspects of original Remix: switching hosts required replacing multiple files throughout the site. The best way was usually to create a whole new site from the new host's template and copy over the pages.
oof!
Whithin 30 minutes plus content download time...
Effectively migration of one of our sites at hand would thus take about 8h.We build web applications for planning, building and managing infrastructure and forestation, mapping, statistics, controlling etc...
An hour? Zach have you *heard* of DNS??
well, portability during an outage is a bigger problem 😅
Also: how long would it take to *redesign* your site?
(Asking for a friend … 😂)don’t you dare plant that thought in my brain
Minutes for static sites. Just drag and drop and wait for DNS to propagate.
Apps... it would depend on the app. Between hours and days. Usually just finding a new container hosting.
I do have a single app that is deeply coupled to Cloudflare Workers and KV and for that I have no answer.
I was hoping Deno Deploy KV would be the answer but that's apparently gone now.
Thanks to 11ty, Zach, I was able to move it to a new host within minutes, Zach, waiting for DNS to catch up, Zach.
Multiple times.
Amazing!