The production and escape of Lyman-Continuum radiation from star-forming galaxies at z {sim} 2 and their redshift evolution