Change task to get the rails environment instead of using parameter; CR:DF