Changes environment to local and modifies local config