Change config enviroments for rails 4
Add secret key base
Remove unnecessary gems for rails 4