Extract the app port numbers into the vars file.