Stay organized with collections Save and categorize content based on your preferences.
The local development server (dev_appserver.py
) is part of the App Engine components of the gcloud CLI. This topic provides advanced information about the dev_appserver.py
usage. See Using the Local Development Server for more information about local testing.
dev_appserver.py
with Python 3 and set the CLOUDSDK_DEVAPPSERVER_PYTHON
environment variable in your shell to the path of your Python 2 interpreter.dev_appserver
tool does not support development of Python 3 apps on Windows.A sample dev_appserver.py
command might look as follows:
python2 DEVAPPSERVER_ROOT/google_appengine/dev_appserver.py OPTION yaml_path FILES
Replace the following:
devapp_server.py
. For more information about downloading and using the archived version of dev_appserver.py
, see Using the local development server.app.yaml
files, one per service, for the positional argument yaml_path
.For a complete list of options, run the following:
DEVAPPSERVER_ROOT/google_appengine/dev_appserver.py -h
Common optionsThe most common options are as follows:
--admin_host=ADMIN_HOST
--admin_port=ADMIN_PORT
--enable_sendmail=yes|no
--enable_task_running=yes|no
yes
. If you specify no
, the server will not run push tasks.
--help
--host=...
0.0.0.0
allows both localhost access and IP or hostname access. Default is localhost
.
--log_level=...
debug
, info
, warning
, error
, and critical
.
--port=...
8080
. If multiple servers are launched such as for services, they will be assigned subsequent ports, such as 8081
, 8082
.
--logs_path=...
--logs_path=/home/logs/boglogs.db
--require_indexes=yes|no
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
.
--runtime_python_path=...
dev_appserver
, specify this flag.
--smtp_host=...
--smtp_port=...
--smtp_user=...
--smtp_password=...
--storage_path=...
--datastore_path
, --blobstore_path
, or --logs_path
.
--support_datastore_emulator=yes|no
--datastore_emulator_port=...
--env_var=...
env_var
is in the format of key=value, and you can define multiple environment variables. In addition to env_variables
in the app.yaml
, this flag allows setting extra environment variables for local processes. For example:--env_var KEY_1=val1 --env_var KEY_2=val2
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-18 UTC."],[[["The `dev_appserver.py` is a local development server tool within the App Engine components of the gcloud CLI, providing advanced options for local development."],["Before running `dev_appserver.py`, users must ensure they have followed the setup instructions and use Python 3, while also setting the `CLOUDSDK_DEVAPPSERVER_PYTHON` environment variable to their Python 2 interpreter's path."],["A typical `dev_appserver.py` command includes specifying the path to the tool, any desired options, and the `app.yaml` file(s) for the service(s)."],["Common options for `dev_appserver.py` include configuring admin and server hosts and ports, enabling email and task sending, setting log levels, specifying storage paths for local files, and using the Cloud Datastore Emulator."],["Running the `dev_appserver.py -h` command will display a complete list of options."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4