Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I activate the Interactive Console on App Engine?

Tags:

I have an issue and I'd like to use the Interactive console you get on the local dev server (http://localhost:8080/_ah/admin) on the cloud server to make sure a query is working as I expect.

I read before you can enable it - but how is it done?

like image 534
blippy Avatar asked Nov 23 '09 12:11

blippy


People also ask

How do you debug an App Engine?

Debugging the applicationSelect Run > Debug. In the dialog, click Google App Engine Standard Local Server. After the project builds, you can set breakpoints to debug your app.

Is the command to deploy a app through App Engine?

Deploy your application to App Engine using the gcloud app deploy command. This command automatically builds a container image by using the Cloud Build service and then deploys that image to the App Engine flexible environment.


2 Answers

Nick's answer doesn't work anymore when using the "threadsafe" option. Instead, you have to use:

- url: /admin/.*   script: google.appengine.ext.admin.application   login: admin 
like image 89
Johannes Bittner Avatar answered Sep 18 '22 08:09

Johannes Bittner


Add the following to your app.yaml, before any .* handler:

- url: /admin/.*   script: $PYTHON_LIB/google/appengine/ext/admin   login: admin 

Another option for your use-case is to enable remote_api, then use the remote_api_shell.py tool included with the SDK, allowing you to test things from a local Python shell.

like image 31
Nick Johnson Avatar answered Sep 20 '22 08:09

Nick Johnson