我正在 Google App Engine 上创建一个离线优先的应用程序,其中 PouchDB 作为我的本地数据库,CouchDB 作为我的远程数据库。我已在 Google AppEngine 上启用了 CouchDB,并尝试访问以下 URL:
https://[my-app-id].appspot.com:5984/_utils/
当我这样做时,我得到以下信息:
This site can’t be reached
The connection was reset.
Try:
Checking the connection
Checking the proxy and the firewall
Running Windows Network Diagnostics
ERR_CONNECTION_RESET
所以我尝试启用https
在防火墙设置中访问。
**Firewalls**
[ ] Allow HTTP traffic
[Y] Allow HTTPS traffic
仍然出现上面的错误。
我搜索了文档,但找不到任何有关如何在 Google AppEngine 上访问 Fauxton(或 Futon)的有用信息。 (说明仅告诉您如何在本地计算机上访问 Fauxton https://docs.bitnami.com/google/infrastructure/couchdb/#how-to-connect-to-fauxton.)
I have 生成私钥和公钥并通过命令行登录服务器 https://docs.bitnami.com/google/faq/#obtaining-your-ssh-credentials-from-the-google-cloud-launcher.
我也遵循了有关配置防火墙以允许远程访问的说明 https://docs.bitnami.com/google/faq/#how-to-open-the-server-ports-for-remote-access,并且仅将其提供给我的电脑。
这些都没有让我能够访问https://[my-app-id].appspot.com:5984/_utils/
如何在 Google AppEngine 平台上访问 Fauxton?
Update:根据我的浏览器中的开发工具,我的 PouchDB 应用程序已成功创建要同步的数据库,但它不在服务器上:
应用程序.yaml 文件
application: [app-name]
version: 4
runtime: python27
api_version: 1
threadsafe: false
handlers:
- url: /
script: main.py
- url: /(favicon)\.ico$
static_files: \1.ico
upload: /(favicon)\.ico
application_readable: true
- url: /(package)\.json$
static_files: \1.json
upload: /(package)\.json
application_readable: true
# Serve images as static resources #
- url: /(.+\.(gif|png|jpg|json|ico))$
static_files: \1
upload: .+\.(gif|png|jpg|json|ico)$
application_readable: true
- url: /index.html
static_files: index.html
upload: index.html
- url: /licence.html
static_files: licence.html
upload: licence.html
- url: /privacy.html
static_files: privacy.html
upload: privacy.html
- url: /pouchnotes.manifest
static_files: pouchnotes.manifest
upload: pouchnotes.manifest
- url: /manifest.json
static_files: manifest.json
upload: manifest.json
# static directories #
- url: /img
static_dir: img
- url: /js
static_dir: js
- url: /css
static_dir: css
libraries:
- name: webapp2
version: "2.5.2"
EDIT: 我在 Bitnami 社区论坛中发布了这个问题 https://community.bitnami.com/t/how-do-i-access-fauxton-on-the-google-appengine-platform/53478(他们在 Google App Engine 上提供 CouchDB)