PortalKit: add deploy functionality, but not finished yet