Google Marketplace应用程序 - 设置测试环境?

时间:2014-02-14 18:44:15

标签: google-drive-api google-apps google-apps-marketplace

Google Console我正在配置Google Drive SDK。在配置页面上,它要求

Open URL (This URL is used when the user opens an existing Google Drive item with your application)

enter image description here

看起来我只能定义一个URL,那么如何在本地测试此功能呢?我可以将URL切换为指向本地主机,但如果我的应用程序已经存在且我需要在本地调试怎么办?

1 个答案:

答案 0 :(得分:1)

Drive的问题之一是对开发/测试环境的支持很少。

我能为您的具体问题考虑的唯一解决方案是主机名称解析。有点像...

  1. 注册子域名driveopenhost.example.com
  2. 将driveopenhost cname的DNS提供给您的实际主机(例如www.example.com)
  3. 在您的开发PC上,配置/ etc / hosts(或等效的Windows)以将driveopenhost.example.com解析为127.0.0.1
相关问题