Je migre mon application gae vers python 2.7. Ceci est mon nouveau app.yaml:Comment migrer mon app.yaml vers 2.7?
application: webfaze
version: main
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /mapreduce(/.*)?
script: mapreduce/main.application
- url: /(.*\.(html|css|js|gif|jpg|png|ico|swf))
static_files: static/\1
upload: static/.*
expiration: "1d"
- url: .*
script: main.application
- url: /task/.*
script: main.application
login: admin
Mais je reçois ce message d'erreur:
Error parsing yaml file:
Invalid object:
threadsafe cannot be enabled with CGI handler: mapreduce/main.application
in "webfaze/app.yaml", line 22, column 1
Pouvez-vous me dire comment résoudre l'erreur?
Merci, c'est vrai que je pourrais simplement omettre la partie mapreduce puisque je ne l'utilise pas pour le moment. Maintenant, la mise à jour a passé la vérification de syntaxe et je suis curieux de voir ce qui s'est passé maintenant que je viens de lancer 'set_default_version' –
Ou nommez-le' mapreduce.main.application'. –
Merci @Nick Johnson pour la solution complète. J'ai pu migrer toute l'application vers Python 2.7 avec un petit effort :-) –