Answer the question
In order to leave comments, you need to log in
How to find out if the site is running locally or if you are accessing the production server?
Good day. Tell me please. there is a local server (open server) there is a combat site for example test.ru and there is a locally launched copy of it with the same name. Actually the question is: when you are developing something locally, how do you know if the site has started locally or if you go to the production server? the names are the same + one more question: when starting the open server, it does not immediately transfer to the local site, from 5-10 times only through ctrl + f5, what could be the problem? (in the hosts file, the open server generates everything automatically). Browser: chrome. Thank you.
Answer the question
In order to leave comments, you need to log in
Who even makes the same names for the local and production site?
Why punish yourself like that?
I support Alexander Aksentiev , I always made local sites .loc, like example.loc/
Find out - in f12, in the "network" tab, the IP is shown for each downloaded resource.
"from 5-10 times only through ctrl + f5," - just restart the browser after starting the openserver. If browsers monitored your hosts every half second, you would have an extra load on the processor. And so after starting the browser every time it checks the hosts file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question