Déployer GAE / py

app.yaml



#Deux éléments essentiels dans le déploiement
application: chaos-1470381605974
version: 1

runtime: python27
api_version: 1
threadsafe: yes

handlers:
- url: /(.*\.(ico|js|ttf|css|gif|png))
  static_files: \1
  upload: (.*\.(ico|js|ttf|css|gif|png))

- url: /.*
  script: main.app

libraries:
- name: webapp2
  version: "2.5.2"

Ouvrez une invite de commande C:\google_appengine\keijiban>appcfg.py -A YOUR_PROJECT_ID -V v1 update YOUR_PROJECT_DIR Bien qu'il soit écrit en Officiel, vous devez entrer. Il a échoué comme suit.

cmd


08:52 PM Application: keijiban-1470046859685; version: 1
08:52 PM Host: appengine.google.com
08:52 PM
Starting update of app: keijiban-1470046859685, version: 1
08:52 PM Getting current resource limits.
Email: [email protected]
Password for [email protected]:
08:52 PM Scanning files on local disk.
Could not guess mimetype for static/README.md.  Using application/octet-stream.
Could not guess mimetype for static/fonts/glyphicons-halflings-regular.eot.  Usi
ng application/octet-stream.
Could not guess mimetype for static/fonts/glyphicons-halflings-regular.svg.  Usi
ng application/octet-stream.
Could not guess mimetype for static/fonts/glyphicons-halflings-regular.ttf.  Usi
ng application/octet-stream.
Could not guess mimetype for static/fonts/glyphicons-halflings-regular.woff.  Us
ing application/octet-stream.
Could not guess mimetype for static/fonts/glyphicons-halflings-regular.woff2.  U
sing application/octet-stream.
Email: [email protected]
Password for [email protected]:
Error 404: --- begin server output ---
https://developers.google.com/accounts/docs/AuthForInstalledApps
--- end server output ---

À la suite de diverses enquêtes C:\google_appengine\keijiban>appcfg.py -A YOUR_PROJECT_ID -V v1 update --oauth2 YOUR_PROJECT_DIR Si vous écrivez, l'authentification se fait sur le navigateur et c'est bien dit.

Dans le domaine d'application de app.yaml application: keijiban-1470046xxxxxxx Si vous le faites correspondre avec l'ID de projet comme, vous pouvez omettre l'option -A dans appcfg.py. J'ai également omis l'option -V car la gestion des versions n'est pas nécessaire. Exemple de réussite spécifique

cmd


C:\google_appengine>appcfg.py update --oauth2 keijiban
08:39 PM Application: keijiban-1470046859685; version: 1
08:39 PM Host: appengine.google.com
08:39 PM
Starting update of app: keijiban-1470046859685, version: 1
08:39 PM Getting current resource limits.
08:39 PM Scanning files on local disk.
Could not guess mimetype for static/README.md.  Using application/octet-stream.
Could not guess mimetype for static/fonts/glyphicons-halflings-regular.eot.  Usi
ng application/octet-stream.
Could not guess mimetype for static/fonts/glyphicons-halflings-regular.svg.  Usi
ng application/octet-stream.
Could not guess mimetype for static/fonts/glyphicons-halflings-regular.ttf.  Usi
ng application/octet-stream.
Could not guess mimetype for static/fonts/glyphicons-halflings-regular.woff.  Us
ing application/octet-stream.
Could not guess mimetype for static/fonts/glyphicons-halflings-regular.woff2.  U
sing application/octet-stream.
Could not guess mimetype for static/fonts/glyphicons-halflings-regular.woff.  Us
ing application/octet-stream.
Could not guess mimetype for static/fonts/glyphicons-halflings-regular.ttf.  Usi
ng application/octet-stream.
Could not guess mimetype for static/fonts/glyphicons-halflings-regular.svg.  Usi
ng application/octet-stream.
Could not guess mimetype for static/fonts/glyphicons-halflings-regular.woff2.  U
sing application/octet-stream.
Could not guess mimetype for static/fonts/glyphicons-halflings-regular.eot.  Usi
ng application/octet-stream.
Could not guess mimetype for static/README.md.  Using application/octet-stream.
08:39 PM Cloning 12 static files.
08:39 PM Cloning 3 application files.
08:39 PM Uploading 7 files and blobs.
Could not guess mimetype for static/README.md.  Using application/octet-stream.
08:39 PM Uploaded 7 files and blobs.
08:39 PM Compilation starting.
08:39 PM Compilation completed.
08:39 PM Starting deployment.
08:39 PM Checking if deployment succeeded.
08:39 PM Deployment successful.
08:39 PM Checking if updated app version is serving.
08:39 PM Completed update of app: keijiban-1470046859685, version: 1
08:39 PM Uploading index definitions.

Il m'a fallu une demi-journée pour arriver ici

Recommended Posts

Déployer GAE / py
Py tememo
gae shimehari
Précautions lors de l'utilisation de la bibliothèque google-cloud avec GAE / py