gcloud app deploy, uploads whole root directory even though app.yaml only specifics 1 upload directory

438 views
Skip to first unread message

Nikos Katsikanis

unread,
Nov 19, 2018, 12:17:42 PM11/19/18
to Google App Engine
I have the following app.yaml:


runtime: python27
api_version: 1
threadsafe: true

handlers:
- url: /
static_files: dist/index.html
upload: dist/index.html

- url: /(.*)
static_files: dist/\1
upload: dist/(.*)



However, I have files outside of dist are also attempted to be uploaded:

ERROR: (gcloud.app.deploy) Cannot upload file [/Users/nikos/WebstormProjects/quantumvue/media/QUANTOM INFO INTRO .mp4], which has size [50597610] (greater than maximum allowed size of [33554432]). Please delete the file or add to the skip_files entry in your application .yaml file and try again.
➜  quantumvue git:(master) ✗ gcloud app deploy     

Vitaly Bogomolov

unread,
Nov 19, 2018, 2:35:22 PM11/19/18
to Google App Engine
Hi, Nikos 

You can use skip_files directive to reduce number of uploaded files

https://cloud.google.com/appengine/docs/standard/python/config/appref#skip_files

WBR, Vitaly

Nikos Katsikanis

unread,
Nov 19, 2018, 3:23:01 PM11/19/18
to Google App Engine
thanks for that!
Reply all
Reply to author
Forward
0 new messages