使用 eclipse 插件在 GAE 上部署应用程序
我使用 eclipse 插件在 GAE 上部署了我的 Web 应用程序。用户界面很好,但当我发送请求时,我没有看到数据被填充。应用程序统计信息选项卡将数据存储区存储的数据
显示为 0%。我在本地系统上执行过哪些写入操作,一旦部署到 GAE 上,我还需要再次执行这些操作吗?这意味着当我在 GAE 上部署应用程序时,本地数据存储不会复制到 GAE 上?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的....本地数据存储未复制...您需要上传CSV或XML格式的数据来填充数据..
Yes.... Local data store is not copied... You need to upload the data in CSV or XML format to populate the data..
应用程序创建的本地数据仅供本地使用。它不打算上传到 GAE。想象一个场景,您有一个正在运行的生产应用程序,其中包含大量数据,并且您上传了该应用程序的新版本。您想要添加本地数据或更糟糕的是替换 GAE 中的数据吗?当然不是。本地设置就像一个拥有自己的数据库的测试环境。您可以使用 http://localhost:8888/_ah/admin/ 访问本地数据位于文件“WEB-INF\appengine- generated\local_db.bin”中。
如果有特殊需要,当然您可以将数据从本地应用程序上传到数据存储区。
Local data created by application is for local use only. It's not intended to be uploaded to GAE. Imagine a scenario, where you have a production application live in production with lots of data, and you upload a new version of the application. Would you like local data to be added or worse replace data in GAE? of course not. Local setup is like a test environment with it's own DB. You can access the data in local using http://localhost:8888/_ah/admin/ and it is in a file "WEB-INF\appengine-generated\local_db.bin"
If there is a special need of course you can upload data from local app to datastore.
如果您的目标是,您可以使用 CSV 或 XML 文件将数据上传到 GAE 数据存储区。我不太确定从本地服务器的数据存储区上传数据,但您可以了解更多信息 此处。
You can upload data to the GAE datastore using CSV or XML files if that's your aim. I'm not positive about uploading data from your local server's datastore, but you can find out some more information here.