测试appcelerator arrowdb生产环境,我该怎么做?
Testing appcelerator arrowdb production environment, how do I do this?
tiapp.xml 文件包含生产和开发环境的密钥。
我想我可以 copy/paste 和里面的东西来切换,但这是测试生产环境的更简单的方法吗?就像 xml 文件中的某些标签,例如 "production=true" 或其他什么?
您的 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
后缀决定了它的值将用于的环境。您也可以省略后缀以在所有环境中使用它。
tiapp.xml 文件包含生产和开发环境的密钥。
我想我可以 copy/paste 和里面的东西来切换,但这是测试生产环境的更简单的方法吗?就像 xml 文件中的某些标签,例如 "production=true" 或其他什么?
您的 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
后缀决定了它的值将用于的环境。您也可以省略后缀以在所有环境中使用它。