As said above, The City can be chilly in July and August, but just a few miles inland it can be triple digits hot.
Luckily, you're nearly always within walking distance of a bar, saloon, grill, restaurant or tavern to fortify oneself. For instance, the Buena Vista (home of the Irish Coffee) is a few steps away from Ghiradelli and a few more away from the Cannery . . .