Railway - Godaddy - Cloudflare
Hi everybody!
I'm planning to migrate my site today from Godaddy DNS to cloudflare following these link guides
https://docs.railway.app/deploy/exposing-your-app
https://developers.cloudflare.com/dns/zone-setups/full-setup/setup/
All this time I have only been working with subdomains created in Godaddy and then pointed to the railway CNAMES
those subdomains worked properly for 5 months. but now that we plan to move the main domain to work in Railway, we noticed that it is required to work with Cloudflare.
the question is... What are the things we should take care to migrate everything to cloudflare? Domain and subdomains - we have a gap of 10 hours before users start work with the app tomorrow.
We were starting the process this afternoon but decided to do it at night to avoid the services being down.
Change your nameservers (Full setup) · Cloudflare DNS docs
If you want to use Cloudflare as your primary DNS provider and manage your DNS records on Cloudflare, your domain should be using a full setup.
44 Replies
Project ID:
f4ffaf00-bf8e-4fc7-8e95-9d64d9995b8d
f4ffaf00-bf8e-4fc7-8e95-9d64d9995b8d
10 hours is a long time, and thankfully Cloudflare is fast, but do be aware that DNS propagation can take up to 72 hours or more...
When you setup the domain with cloudflare, it will automatically detect your current DNS records and import them, so this is a huge help.
You will want to ensure that once you have everything setup, go to the SSL settings for your domain in cloudflare and set them to
FULL
and nothing else.
To setup your root domain, you will need to do it as a cname just like your subdomains.
Other than those tips, everything else should be smooth sailing. You can tag me if you run into any issuesAwesome! everything sounds good
I'll start it in 5 hours then. thanks for the reply.
No problem
Hello!
I'm trying to configure my new DNS into Cloudflare
Any idea why I'm getting this message?
You will need to look at your existing records and delete the A record for your root domain
Then add the cname
The cname replaces the A record
this one, right?
Yes, you want to delete that one
I saw the image before it was removed
ok, adding it......
I removed that one just in case
Perfect!
it is pointing to my previous page from godaddy though
And your SSL settings are set to Full, yes?
It will take some time for DNS to propagate
correct
DNS can take up to 72 hours to propagate. It could also be serving a cached version to you
Try a different browser
Ok I will wait then
When I move from one host to another, I usually deploy at the new host with a small change to the site... Something that isn't noticable to users, but would be to me, that way I can check that everything is properly configured
margin: -1px;
Do you see something wrong here?
what I'm expecting from qrupones.com is to work with the new landing page built with next js
i see you have www pointed to your cname, that wont work, youd need to do the www to non www redirect in cloudflare
https://qrupones-production.up.railway.app/
this will be the new landing page
QRupones - Potencia la ReCompra y Fidelización de Clientes
Escanea, ahorra, disfruta. Impulsando lealtad, generando ahorro. Incentiva a tus clientes a volver a tu negocio, beneficiándolos con cupones de descuentos para premiar su fidelidad e incentivar las recompras!
Should I delete that?
very nice
not delete, you would just need to do the redirect in cloudflare
www is not really needed at all anymore... It's an unnecessary subdomain that legacy providers like GoDaddy keep in place
true true
ok, should I delete it then?
or I can keep it; that doesn't matter?
do you need www? if you leave it as it is there will be an ssl error on the www subdomain
oh got it! I will delete it then since it's not important as Vin said
something I need to touch here?
nope
Everything looks good
When you setup the domain, did you enable the https redirect option?
Perfect! I will put an alarm in 5 hours then to check if this worked
oh yeah! force https always
That option from cloudflare during the setup steps
Yeah, that's the one
All right! thanks for the help guys
I will let you know if everything works tomorrow morning.
Have a nice weekend
you too!
No problem. It should auto resolve once cloudflare does it's thing
Good morning!
You were right Brody! If I add www this ends in an empty page with the railway logo.
but if I remove the www. from the url the site is already working.
I think I will need to create a redirection in Cloudflare.
I had removed the www DNS but cloudflare showed a message that it should be created. that's why I have recreated it.
you see?
Do you think this should work?
It works now!
Screenshots for fuuture readers...
this last one with only www.qrupones.com solved the issue for me!
awesome!
Glad it's working for you. You really shouldn't have to create all those rules. But if it's working now, it's working and that's all that matters