Update error in python google app
I have successfully installed the Google App Engine SDK for python in ubuntu-15.04. Its working fine for localhost. An error occurs for this command.
$ dev_appserver.py .
INFO 2015-07-21 06:18:19,221 api_server.py:205] Starting API server at: http://localhost:55916
INFO 2015-07-21 06:18:19,224 dispatcher.py:197] Starting module "default" running at: http://localhost:8080
INFO 2015-07-21 06:18:19,236 admin_server.py:118] Starting admin server at: http://localhost:8000
INFO 2015-07-21 06:19:49,695 module.py:809] default: "GET / HTTP/1.1" 200 13
Everything is still working.
When I want to update it, you get the error
$ appcfg.py update .
Usage: appcfg.py [options] update <directory> | [file, ...]
appcfg.py: error: Expected -A app_id when application property in file app.yaml is not set
What does it mean? Can someone help me fix this error? If there is a problem with the App ID, then how can I get the App ID? thanks.
source to share
The last line of the second dump tells you that the "application property" in the app.yaml configuration file is not set. Add a line at the beginning like so:
application: <name>
where <name>
is replaced by your application name. You can also update using appcfg with the -A tag:
appcfg.py -A <name> update <directory>
again replacing <name>
both <directory>
with the desired application name and the project directory where the app.yaml file exists.
source to share