Generally, the gate faces east, southeast and south. This is because of the position of the sun. The sunshine in the morning is more precious, so it doesn't matter in the afternoon.
Of course, it depends on the location. Never face north in the north, but try not to face west. In winter, the north wind is more than the west, and in summer, the southeast wind is more. Sheltering from the wind in winter and facing the wind in summer is the best choice.