app.yaml
application: foo-app
version: 1
runtime: python
api_version: 1
handlers:
- url: /test
script: myapp/test.py
- url: /
static_files: myweb/index.html
upload: myweb/index.html
# Static files cannot be the same as application code files.
# If a static file path matches a path to a script used in a dynamic handler,
# the script will not be available to the dynamic handler.
# clashes with script
- url: /
static_dir: myweb
-------------------
folder structure:
foo-app:
+-- app.yaml
+-- myweb
+--- index.html
+-- myapp
+--- test.py
+--- __init__.py
+--- json_data
------------------
test
$ google_appengine/dev_appserver.py foo-app
deploy
$ google_appengine/appcfg.py update foo-app
No comments:
Post a Comment