Python Django application deployed on Google App Engine
Run server in debug mode
--automatic_restart=no --max_module_instances=default:1
Run one test
python -m unittest app.test.airport.test_airport_parser
Specific datastore
--datastore_path=/path/to/datastore
Google App Engine specific
Push updates
appcfg.py update .
python2.7 dev_appserver.py --automatic_restart=no --max_module_instances=default:1 .
Download code from app engine
appcfg.py -A [YOUR_APP_ID] -V [YOUR_APP_VERSION] download_app [OUTPUT_DIR]
List versions
appcfg.py list_versions .
Set version
appcfg.py set_default_version .
Environment variable
--env_var SKIP_MISSION_REFRESH=True
Check if runs locally
os.getenv('SERVER_SOFTWARE', '').startswith('Google App Engine/')
gcloud auth login
gcloud config set project flight-manager-1
gcloud app deploy
Versions are generated automatically by default but can also be manually specified by setting the --version
flag on individual command executions.
Stream logs gcloud app logs tail -s default
gcloud app browse
Useful links:
- Using the Local Development Server
- Multi type of planes
releases/4.0
- Stopover
Useful links: