If your available ground space is limited, include window boxes and container plants in your planting plan. Thoroughly prepare the soil before planting. Good soil preparation is probably the single most important element in successful vegetable gardening. Test and adjust your soil's pH to suit your plants. Add abundant organic matter.
Organic matter improves soil conditions, conserves soil moisture and encourages root development.
The best time to add amendments like compost, decomposed manure or peat moss is when you spade or till the soil. Peat moss is an excellent amendment for San Francisco gardens because it is weed-free, helps hold moisture in sandy soil, and can be safely added in large quantities. If you are preparing your garden a month or so ahead of time, you can also add leaves, grass and similar undecomposed organic material. Use proper lifting techniques and have the right tools on hand. Your gardening projects will be faster, safer and easier if you use your body correctly and use the right tools for the project.