You're forcing ENV to be production regardless of the actual environment variables. `Kohana::DEVELOPMENT` is the default environment if none provided, I don't see why that would change?