PortalKit: add deploy logic, not finished yet