运行本地GAE

时间:2016-09-21 15:34:50

标签: google-app-engine

我已按照这些说明操作:

https://cloud.google.com/appengine/docs/php/quickstart

我不得不手动将捆绑的python与.py文件关联起来。我跑的时候:

dev_appserver.py --port 8087 helloworld/

“参数太少错误?

谷歌搜索已经暗示必须明确说明PHP二进制文件等...但上面链接的文档非常清楚,这不是Windows(7)所必需的,因为GAE附带了捆绑的PHP环境。

我错过了什么? GUI启动器发生了什么 - 对我来说很有效:)

C:\Users\alex.DOMAIN\Desktop\temp>dev_appserver.py "temp\helloworld\" usage: dev_appserver.py [-h] [-A APP_ID] [--host HOST] [--port PORT] [--admin_host ADMIN_HOST] [--admin_port ADMIN_PORT] [--auth_domain AUTH_DOMAIN] [--storage_path PATH] [--log_level {debug,info,warning,critical,error}] [--max_module_instances MAX_MODULE_INSTANCES] [--use_mtime_file_watcher [USE_MTIME_FILE_WATCHER]] [--threadsafe_override THREADSAFE_OVERRIDE] [--php_executable_path PATH] [--php_remote_debugging [PHP_REMOTE_DEBUGGING]] [--php_gae_extension_path PATH] [--php_xdebug_extension_path PATH] [--appidentity_email_address APPIDENTITY_EMAIL_ADDRESS] [--appidentity_private_key_path APPIDENTITY_PRIVATE_KEY_ PATH] [--python_startup_script PYTHON_STARTUP_SCRIPT] [--python_startup_args PYTHON_STARTUP_ARGS] [--jvm_flag JVM_FLAG] [--custom_entrypoint CUSTOM_ENTRYPOINT] [--runtime RUNTIME] [--blobstore_path BLOBSTORE_PATH] [--mysql_host MYSQL_HOST] [--mysql_port MYSQL_PORT] [--mysql_user MYSQL_USER] [--mysql_password MYSQL_PASSWORD] [--mysql_socket MYSQL_SOCKET] [--datastore_path DATASTORE_PATH] [--clear_datastore [CLEAR_DATASTORE]] [--datastore_consistency_policy {consistent,random,time} ] [--require_indexes [REQUIRE_INDEXES]] [--auto_id_policy {sequential,scattered}] [--logs_path LOGS_PATH] [--show_mail_body [SHOW_MAIL_BODY]] [--enable_sendmail [ENABLE_SENDMAIL]] [--smtp_host SMTP_HOST] [--smtp_port SMTP_PORT] [--smtp_user SMTP_USER] [--smtp_password SMTP_PASSWORD] [--smtp_allow_tls [SMTP_ALLOW_TLS]] [--prospective_search_path PROSPECTIVE_SEARCH_PATH] [--clear_prospective_search [CLEAR_PROSPECTIVE_SEARCH]] [--search_indexes_path SEARCH_INDEXES_PATH] [--clear_search_indexes [CLEAR_SEARCH_INDEXES]] [--enable_task_running [ENABLE_TASK_RUNNING]] [--allow_skipped_files [ALLOW_SKIPPED_FILES]] [--api_port API_PORT] [--automatic_restart [AUTOMATIC_RESTART]] [--dev_appserver_log_level {debug,info,warning,critical, error}] [--skip_sdk_update_check [SKIP_SDK_UPDATE_CHECK]] [--default_gcs_bucket_name DEFAULT_GCS_BUCKET_NAME] yaml_path [yaml_path ...] dev_appserver.py: error: too few arguments

这是我的app.yaml:

runtime: php55
api_version: 1

handlers:

- url: /.*
  script: helloworld.php

2 个答案:

答案 0 :(得分:0)

尝试:dev_appserver.py --port=8087 helloworld/

编辑:确保当前目录中存在helloworld/,并且它包含有效的app.yaml

答案 1 :(得分:0)