Local Development Server Options

Usage:

dev_appserver.py [options] yaml_path [files...]

The positional argument yaml_path specifies one or more app.yaml files, one per module.

For a complete list of options, type:

dev_appserver.py -h

The most common options are described here.

--auto_id_policy=...
Deprecated. How the local datastore assigns automatic IDs. Options are sequential or scattered. The default is scattered.
--admin_host=ADMIN_HOST
Host name to which the local Development Console should bind (default: localhost).
--admin_port=ADMIN_PORT
Port to which the local Development Console should bind (default: 8000).
--clear_datastore=yes|no
Clears the datastore data and history files before starting the web server. The default is no.
--datastore_path=...
The path to use for the local datastore data file. The server creates this file if it does not exist.
--enable_sendmail=yes|no
Uses the local computer's Sendmail installation for sending email messages.
--help
Prints a helpful message then quits.
--host=...
The host address to use for the server. You may need to set this to be able to access the development server from another computer on your network. An address of 0.0.0.0 allows both localhost access and hostname access. Default is localhost.
--log_level=...
The lowest logging level at which logging messages will be written to the console; messages of the specified logging level or higher will be output. Possible values are debug, info, warning, error, and critical.
--port=...
The port number to use for the server. Default is 8080. If multiple servers are launched, they will be assigned subsequent ports (e.g. 8081, 8082, etc).
--logs_path=...
By default, development server logs are stored in memory only. This option stores request logs in a file at the specified path, making the logs available across server restarts. For example: --logs_path=/home/logs/boglogs.
--require_indexes=yes|no
Disables automatic generation of entries in the index.yaml file. Instead, when the application makes a query that requires that its index be defined in the file and the index definition is not found, an exception will be raised, similar to what would happen when running on App Engine. The default value is no.
--smtp_host=...
The hostname of the SMTP server to use for sending email messages.
--smtp_port=...
The port number of the SMTP server to use for sending email messages.
--smtp_user=...
The username to use with the SMTP server for sending email messages.
--smtp_password=...
The password to use with the SMTP server for sending email messages.
--storage_path=...
Path at which all local files (such as the Datastore, Blobstore files, Google Cloud Storage Files, logs, etc) will be stored, unless overridden by --datastore_path, --blobstore_path, --logs_path, etc.
--php_executable_path=...
Path to the php-cgi binary
--php_gae_extension_path=...
Path to the gae_runtime_module.so binary
--php_remote_debugging=yes|no
Set to yes to enable remote debugging with XDebug

Send feedback about...

App Engine standard environment for PHP