如何重新设置 apigee 学习边缘教程的组织?

How to re-set organisation for apigee learning edge tutorials?

我正在经历这个 apigee tutorial。 第一次调用此 script 时,它会询问对用户进行重新评分的基本信息。错误地,我给了错误的组织。

Checking user configuration info ...

Enter the password for user on server enterprise.apige
e.com.

Password:
Verifying credentials on api.enterprise.apigee.com ...
Organization is invalid!
Please re-run the script using the right org.

当我重新运行脚本时,它并没有要求我组织。如何将组织设置为正确的名称

trunk\setup 中有一个 userconf.sh 文件。

滚动到文件顶部,您会看到类似这样的内容-

# there are 2 main cases to handle:
# (a) the user's $HOME/.learn-edge.rc file exists,
# in which case we just dot it in; or
# (b) it doesn't exist, in which case we prompt
# for the values and write out to the config file.

Apigee 将您的所有基本信息内容写入 $HOME/.learn-edge.rc。只需修改此 -

export org="youraccount-eval"

设置为正确的值,它将起作用。