Having fallen behind early on, Stephen Robinson's youthful side equalised through Derry City's Shane McEleney.
They stayed level until half-time, only to slide behind three minutes after it and then concede again on the hour.
But they finished the stronger of the two sides, scoring again through Accrington striker James Gray's 90th-minute penalty, only to have left themselves short on time to find an equaliser.







