changing the domain of a site

hello, i have a website lidnote.com and i want to change it to biruny.com, i dont want to add a new site because then i'd have to do all the settings all over again (unless there's a simpler solution to do that, which would be even better) can i or how can i do this? thank you
9 Replies
zegevlier
zegevlier12mo ago
I don't know of a better way to do this than to add a new site, then manually transfer all the settings over
laralove
laralove12mo ago
i ended up doing this like 4 times i might create a script for it
Tin Cap
Tin Cap12mo ago
You could potentially keep things under biruny.com and CNAME lidnote.com to biruny.com Kind of weird but wouldn't require anything to get moved over
laralove
laralove12mo ago
that is kind of weird, cool idea tho
Hello, I’m Allie!
Might be where something like Pulumi comes in handy?
pulumi
Pulumi - Infrastructure as Code in any Programming Language
Pulumi's open source infrastructure as code SDK enables you to create, deploy, and manage infrastructure on any cloud, using your favorite languages.
Hello, I’m Allie!
For later migrations, if they do occur Idk, you can do that too. Just seen more positive stuff with Pulumi, but whatever floats your boat.
laralove
laralove12mo ago
i dont see how this is related arent these for microservices k8s etc the sites are entirely different projects they just share the settings
Hello, I’m Allie!
With an IaaS tool like Terraform or Pulumi, you can write out your entire Cloudflare/AWS/GCP/Azure Config in the form of several files, that you can then auto-deploy. So if you have a new domain where you want the same settings, you just add the domain name, and run the deploy.
laralove
laralove12mo ago
ahh my concern w doing it programmatically is missing new configurations cf adds
Want results from more Discord servers?
Add your server