简体   繁体   English

使用eclipse插件在GAE上部署应用程序

[英]Deploying application on GAE using eclipse plugin

I deployed my web application on GAE using eclipse plugin. 我使用eclipse插件在GAE上部署了我的Web应用程序。 UI is fine but I do not see the data getting populated when I send a request. 用户界面很好,但是当我发送请求时,我看不到填充的数据。 The application statistics tab shows Datastore Stored Data as 0%. 应用程序统计信息选项卡将Datastore Stored Data显示为0%。 What ever write operations I did on the local system do I have to do them again once it is deployed on GAE? 我在本地系统上编写的操作是否必须在GAE上部署后再次执行? That means when I deploy my application on GAE the local data store is not copied on to GAE? 这意味着当我在GAE上部署我的应用程序时,本地数据存储不会复制到GAE上吗?

是....本地数据存储未复制...您需要以CSV或XML格式上传数据以填充数据。

Local data created by application is for local use only. 应用程序创建的本地数据仅供本地使用。 It's not intended to be uploaded to GAE. 它不打算上传到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? 您是否希望添加本地数据或更糟糕的替换GAE中的数据? of course not. 当然不是。 Local setup is like a test environment with it's own DB. 本地设置就像一个拥有自己的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" 您可以使用http:// localhost:8888 / _ah / admin /访问本地数据,它位于文件“WEB-INF \\ appengine-generated \\ local_db.bin”中

If there is a special need of course you can upload data from local app to datastore. 如果有特殊需要,您可以将数据从本地应用程序上传到数据存储区。

You can upload data to the GAE datastore using CSV or XML files if that's your aim. 如果这是您的目标,您可以使用CSV或XML文件将数据上传到GAE数据存储区。 I'm not positive about uploading data from your local server's datastore, but you can find out some more information here . 我不赞成从本地服务器的数据存储中上传数据,但您可以在此处找到更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM