测试appcelerator arrowdb生产环境,我该怎么做?

时间:2016-05-30 05:51:26

标签: appcelerator arrowdb

tiapp.xml文件包含生产和开发环境的密钥。

我想我可以在那里复制/粘贴和填充切换,但它是一种更简单的测试生产环境的方法吗?像xml文件中的某些标记,例如“production = true”或者什么?

1 个答案:

答案 0 :(得分:0)

您的tiapp.xml应该类似于:

<property name="appc-app-id" type="string">123</property>
<property name="acs-authbase-url-development" type="string">https://secure-identity.cloud.appcelerator.com</property>
<property name="acs-base-url-development" type="string">https://api.cloud.appcelerator.com</property>
<property name="acs-oauth-secret-development" type="string">123</property>
<property name="acs-oauth-key-development" type="string">123</property>
<property name="acs-api-key-development" type="string">123</property>
<property name="acs-username-development" type="string">appc_app_user_dev</property>
<property name="acs-password-development" type="string">123</property>
<property name="acs-authbase-url-production" type="string">https://secure-identity.cloud.appcelerator.com</property>
<property name="acs-base-url-production" type="string">https://api.cloud.appcelerator.com</property>
<property name="acs-oauth-secret-production" type="string">123</property>
<property name="acs-oauth-key-production" type="string">123</property>
<property name="acs-api-key-production" type="string">123</property>
<property name="acs-username-production" type="string">appc_app_user</property>
<property name="acs-password-production" type="string">123</property>
<property name="appc-org-id" type="string">123</property>
<property name="appc-creator-user-id" type="string">123</property>

正如您所看到的,-development-production后缀决定了它将用于的值的环境。您也可以省略后缀以在所有环境中使用它。