运行 dev_appserver.py时如何配置应用名称?
How to configure application name when running dev_appserver.py?
我曾经在app.yaml中配置应用名称。但我刚刚重新阅读了最新的文档,他们说:
The recommended approach is to remove the application element from your app.yaml file and instead, use a command-line flag to specify your application ID:
To use the gcloud app deploy command, you must specify the --project flag:
gcloud app deploy --project [YOUR_PROJECT_ID]
To use the appcfg.py update command, you specify the -A flag:
appcfg.py update -A [YOUR_PROJECT_ID]
但是 dev_appserver.py
呢?如何使用项目名称配置它?
dev_appserver.py
也支持-A
标志来设置应用程序id。
来自 dev_appserver.py -h
的输出:
-A APP_ID, --application APP_ID
Set the application, overriding the application value
from the app.yaml file. (default: None)
我曾经在app.yaml中配置应用名称。但我刚刚重新阅读了最新的文档,他们说:
The recommended approach is to remove the application element from your app.yaml file and instead, use a command-line flag to specify your application ID:
To use the gcloud app deploy command, you must specify the --project flag:
gcloud app deploy --project [YOUR_PROJECT_ID]
To use the appcfg.py update command, you specify the -A flag:
appcfg.py update -A [YOUR_PROJECT_ID]
但是 dev_appserver.py
呢?如何使用项目名称配置它?
dev_appserver.py
也支持-A
标志来设置应用程序id。
来自 dev_appserver.py -h
的输出:
-A APP_ID, --application APP_ID
Set the application, overriding the application value
from the app.yaml file. (default: None)