app.yaml
#Two essential items in deploy
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"
Open a command prompt C:\google_appengine\keijiban>appcfg.py -A YOUR_PROJECT_ID -V v1 update YOUR_PROJECT_DIR Although it is written in Official that you should enter. It failed as follows.
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 ---
As a result of various investigations C:\google_appengine\keijiban>appcfg.py -A YOUR_PROJECT_ID -V v1 update --oauth2 YOUR_PROJECT_DIR If you write, the authentication is done on the browser and it said well.
In the application field of app.yaml application: keijiban-1470046xxxxxxx If you match it with the project ID like, you can omit the -A option in appcfg.py. Also, version control is unnecessary, so I omitted the -V option. Specific success example
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.
It took me half a day to get here