Changed the detect environemnt to recognize when I am working on a local server.