fixed production mode for rails 4