apply_order_exports
move PORT validation and PUBLISH_PORT default into apply_order_exports