问题描述:

Using google app engine launcher, I can't seem to deploy my app due to this:

[email protected]', '--passin', 'update', 'C:\Users\admin\Desktop\school work\customtinywebdb']"

Usage: appcfg.py [options] update | [file, ...]

appcfg.py: error: Error parsing C:\Users\admin\Desktop\school work\customtinywebdb\app.yaml: mapping values are not allowed here

in "C:\Users\admin\Desktop\school work\customtinywebdb\app.yaml", line 1, column 24.

2014-11-25 19:46:48 (Process exited with code 2)

This is my yaml file,whats wrong with it?

application: camel-cars: 1

runtime: python

api_version: 1

handlers:

- url: /images

static_dir: images

  • url: .*

    script: main.py

网友答案:

Yaml files are sensitive to white spaces. Also you are missing key words and new lines. Give this a try:

application: camel-cars
version: 1 
runtime: python27 
api_version: 1
threadsafe: false

handlers:
- url: /images
  static_dir: images

- url: .* 
  script: main.py
相关阅读:
Top