DEV Community

StuartCreed
StuartCreed

Posted on • Edited on

1

Using hosts file to test websites with live domain on Mac - TEST LIVE

cd /etc

sudo nano hosts

Insert the below:

127.0.0.1 websitesareawesome.co.uk www.websitesareawesome.co.uk

Then when you go to websitesareawesome.co.uk or www.websitesareawesome.co.uk in the browser it will actually be looking at the source from 127.0.0.1 but using those domains.

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay