Modified config files to work better on production server.
Modiffied how env variables are accessed