工作,我只是有一點麻煩理解爲什麼這個命令:appcfg.py不是在命令行
>appcfg.py -A adept-box-109804 update app.yaml
由試用谷歌應用程序引擎現在頁面給出不起作用。我已經下載了適用於Python的App Engine SDK,並將Path設置爲指向appcfg.py的位置,但在項目根目錄中運行appcfg.py在命令行中不起作用。我要麼必須瀏覽到包含appcfg.py的文件夾,並做
>python appcfg.py help
或做
>python "C:\Program Files (x86)\Google\google_appengine\appcfg.py" help
得到命令在任何地方工作。我使用後一種方法來部署我的測試應用程序,但只是想知道是否有人能解釋爲什麼簡單的Google教程給出的命令沒有做任何事情。我還檢查只需輸入
>hello.py
確保.py文件會自動使用Python 2.7解釋器打開,使得文件hello.py將在命令行中執行,它會輸出它的打印語句。在另一方面,以類似的方式使用appcfg.py提供同樣的輸出不管參數(請注意我截斷輸出,但放心,它們是相同的,不管參數:
C:\>appcfg.py help backends
Usage: appcfg.py [options] <action>
Action must be one of:
backends: Perform a backend action.
backends configure: Reconfigure a backend without stopping it.
backends delete: Delete a backend.
backends list: List all backends configured for the app.
backends rollback: Roll back an update of a backend.
backends start: Start a backend.
backends stop: Stop a backend.
backends update: Update one or more backends.
create_bulkloader_config: Create a bulkloader.yaml from a running application.
cron_info: Display information about cron jobs.
delete_version: Delete the specified version for an app.
download_app: Download a previously-uploaded app.
download_data: Download entities from datastore.
help: Print help for a specific action.
list_versions: List all uploaded versions for an app.
request_logs: Write request logs in Apache common log format.
resource_limits_info: Get the resource limits.
rollback: Rollback an in-progress update.
set_default_version: Set the default (serving) version.
start_module_version: Start a module version.
stop_module_version: Stop a module version.
update: Create or update an app version.
update_cron: Update application cron definitions.
update_dispatch: Update application dispatch definitions.
update_dos: Update application dos definitions.
update_indexes: Update application indexes.
update_queues: Update application task queue definitions.
upload_data: Upload data records to datastore.
vacuum_indexes: Delete unused indexes from application.
Use 'help <action>' for a detailed description.
C:\>appcfg.py help update
Usage: appcfg.py [options] <action>
Action must be one of:
backends: Perform a backend action.
backends configure: Reconfigure a backend without stopping it.
backends delete: Delete a backend.
backends list: List all backends configured for the app.
backends rollback: Roll back an update of a backend.
backends start: Start a backend.
backends stop: Stop a backend.
backends update: Update one or more backends.
create_bulkloader_config: Create a bulkloader.yaml from a running application.
cron_info: Display information about cron jobs.
delete_version: Delete the specified version for an app.
download_app: Download a previously-uploaded app.
download_data: Download entities from datastore.
help: Print help for a specific action.
list_versions: List all uploaded versions for an app.
request_logs: Write request logs in Apache common log format.
resource_limits_info: Get the resource limits.
rollback: Rollback an in-progress update.
set_default_version: Set the default (serving) version.
start_module_version: Start a module version.
stop_module_version: Stop a module version.
update: Create or update an app version.
update_cron: Update application cron definitions.
update_dispatch: Update application dispatch definitions.
update_dos: Update application dos definitions.
update_indexes: Update application indexes.
update_queues: Update application task queue definitions.
upload_data: Upload data records to datastore.
vacuum_indexes: Delete unused indexes from application.
Use 'help <action>' for a detailed description.
感謝您的簡潔明確的答案,丹。我也懷疑,當使用appcfg.py調用時,相同的輸出是Windows版本的錯誤。幸運的是,關閉appcfg的全部功能仍然可以通過使用python appcfg.py調用來訪問。 – TowMater7
這可以解釋爲什麼這個bug不被注意到發佈的SDK版本:) –