Search code examples
phpgoogle-app-enginegoogle-cloud-platformdev-appserver

AppIdentityService::getApplicationId return "None"


I am trying to setup local development on my computer and have had some success. I can start the local server with dev_appserver.py and can access my local MySQL server through my php app.

I'm a noob with gcp, but have many years of experience.

When I try to execute the following code it returns "None":

$applicationID = AppIdentityService::getApplicationId();

Where do I set the Application ID?


Solution

  • The Application ID is generated and assigned by the App Engine runtime environment. It will be null or None when run locally before the app is deployed to App Engine.