changed production settings to use environment variables