I am deploying a app in Google app engine. It has deployed successfully but database is not deploying.I have developed this app in java using Google app engine.
When i see the data in data store Viewer in app dashboard so it not showing any thing.
I haven't used Google App Engine in a long time, but I don't think it's MEANT to be deployed - after the initial deployment this is obviously an issue as you don't want to overwrite your production data.
This post may help: Google AppEngine database
Matt Salmon is right, your local datastore and the remote one are two different things. In order to start seeing stuff in the datastore viewer online you will have to interact with the deployed application and start inserting data. Since you manage to have some data locally, you should be able to do the same online.
Also your local datastore will be reseted from time to time, but if you want it not to be deleted then run your development server with an argument: --datastore_path= and if you're also using the blobstore: --blobstore_path=DIR.
Related
I am using Java Client Library to use google Dialogflow. My questions is what happens when we use "appEnginedeploy" using gradle? Where is the code stored and more importantly how the implemented database and other files of code stored and accessed by our agent?
Thanks!
appEngineDeploy is setup to deploy the code to App Engine, a computing platform on Google Cloud. Code and associated project files are stored as they are in your project.
It's not entirely a VM, so you shouldn't necessarily think of App Engine as locating filepaths. If the project can make the links locally, then it should behave the same way in App Engine.
With regards to databases, it would depend if you're using an embedded database or using a hosted solution through another Google Cloud service. Presumably you'd use the database APIs for a Cloud service as shown in the documentation.
So it's possible to deploy java web applications to Google App Engine (GAE) but how could I host a standard java app on GAE? I've written an application for my company that have to be running 24/7, the application basically monitors the inbox of a specific email and does the required handling.
Is it possible to port such an app to a web application that can be deployed on GAE? Or is GAE only designed for RESTful apps?
If this is not possible through GAE, should we give Google Compute Engine a look?
It's possible to port this app to GAE, but you'll need to do some additional work - such as setting up a scheduled task using Cron so that the logic of your application would be executed regularly.
With Google Compute Engine, it's likely that you'll be able to simply run the application without many modifications, but you'll likely spend more effort on setting up and maintaining the GCE VM on which your application runs.
I recently learned about Docker and from a press release that Google App Engine supports it.
The question is,
Does it mean that we can now "package" our app using Docker (may it contain non-GAE white-listed jars) and expect it to work with Google App Engine?
How a docker app can access the Datastore API, the TaskQueue API is there a way, or this question is irrelevant?
If I package with Docker, say, a Spring app that access MongoDB, MySQL or whatever would it work GAE, if yes how come?
Or otherwise if this idea is not correct,
What is the integration of Docker and Google App Engine?
This is part of an ongoing Limited Preview Managed VMs, you can subscribe to it with the following form
Does it mean that we can now "package" our app using Docker (may it contain non-GAE white-listed jars) and expect it to work with Google App Engine?
Yes
How a docker app can access the Datastore API, the TaskQueue API is there a way, or this question is irrelevant?
Using the regular API jars.
If I package with Docker, say, a Spring app that access MongoDB, MySQL or whatever would it work GAE, if yes how come?
Because the underlying container run on a Google Compute Engine VMs, see the Managed VMs documentation referenced earlier for more details.
I've GAE application which creates some data in the Google Cloud Datastore and stores some binary files into the Google Cloud Storage - let's call the application WebApp.
Now I have a different application running on the Google compute engine. Let's call the application ComputeApp.
The ComputeApp is a backend process which is processing data created by the WebApp. I asked here in this question previously which API can I use to communicate with Datastore from the ComputeApp. As suggested by #proppy, I implemented the Datastore communication using of the Google Cloud Datastore API.
Everything works fine as far as I'm communicating with the Datastore in the Google cloud. I'm using the service account authentication.
Now I need to run my ComputeApp locally, on my development PC so I'll take data created by my local WebApp and stored into the local debug Datastore. I need it because I want to have a testing environment so I can debug may GAE app locally.
How should I modify my ComputeApp code to force it to connect to my local debug Datastore instead of connect to the Google cloud?
I googled a lot and didn't find any advice nor example. Only possible way I found that I should rewrite my code completely and use a different API to do that. Such is Datastore Remote API.
Is this really only way? Should I really rewrite whole ComputeApp to connect to the local DB?
Really?
I hope that I just overlooked something important and It's not true...
Google Cloud Datastore has a local development server that you can use: https://developers.google.com/datastore/docs/tools/devserver
You can create and start the local datastore using the gcd tool which is linked to in the doc above.
If you use DatastoreHelper.getDatastoreFromEnv(); to build your Datastore, you can tell it to connect to your local database by exporting the env variable DATASTORE_HOST:
export DATASTORE_HOST=http://localhost:8080
I'm new to app engine, so bear it with me.
I've a App-Engine web app project that does multiple things and populates Database using JDO persistence. App takes long time to execute, so I prefer running it offline (as time limit is much higher).
Now where is this local JDO data persisted?
I can access it at http://localhost:8888/_ah/admin
How can I export this database to App Engine?
There is a bulk uploader for the appengine (written in python) that can be used to upload data stored in datastore for your app.
Unfortunately there is no equivalent tool (provided by google) in java.
On your second question, the local dev server stores data in
<app-dir>/WEB-INF/appengine-generated/local_db.bin
This forum suggests that you will have to write a script and use datanucleus's rest api to do that for your java appengine app.