[PYTHON] Stellen Sie GAE / py bereit

app.yaml



#Zwei wesentliche Elemente bei der Bereitstellung
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"

Öffnen Sie eine Eingabeaufforderung C:\google_appengine\keijiban>appcfg.py -A YOUR_PROJECT_ID -V v1 update YOUR_PROJECT_DIR Obwohl es in Official geschrieben ist, sollten Sie eingeben. Es ist wie folgt fehlgeschlagen.

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 ---

Als Ergebnis verschiedener Untersuchungen C:\google_appengine\keijiban>appcfg.py -A YOUR_PROJECT_ID -V v1 update --oauth2 YOUR_PROJECT_DIR Wenn Sie schreiben, erfolgt die Authentifizierung im Browser und es wird gut gesagt.

Im Anwendungsbereich von app.yaml application: keijiban-1470046xxxxxxx Wenn Sie es mit der Projekt-ID wie übereinstimmen, können Sie die Option -A in appcfg.py weglassen. Außerdem ist die Versionsverwaltung nicht erforderlich, sodass ich die Option -V weggelassen habe. Spezifisches Erfolgsbeispiel

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.

Ich habe einen halben Tag gebraucht, um hierher zu kommen

Recommended Posts

Stellen Sie GAE / py bereit
Py tememo
Gae Shimehari
Vorsichtsmaßnahmen bei Verwendung der Google Cloud-Bibliothek mit GAE / py