update environment config for rails 4