I'm looking for way to make sure the files I deploy to Google AppEngine (Python) using gcloud app deploy
are only the files I need.
In the log file it only list files that are skipped but not the files that are deployed.
Is there a way to see this list?
All the files and directories present or sym-linked under an app service/module directory (i.e. the directory where the respective service/module's
.yaml
file exists) will be deployed when the respective app service/module is deployed, unless they're skipped files (i.e. they match the default or configuredskip_files
patterns - see theskip_files
row in theapp.yaml
Syntax doc table).So you can obtain a recursive listing of your service/module directory (make sure you follow/include sym-linked sub-directories), then drop the skipped files from it.
Alternatively, if you are using
appcfg.py update
for deployment, you can use its--noisy
option which will make it display, among other stuff, that desired info, like this:Unfortunately I don't see a similar option for
gcloud app deploy
.EDIT:
As of Google Cloud SDK 171.0.0 adding the option
--verbosity=info
provides you with processed files in a log line after it finishes uploading the filesINFO: Manifest: [{'path/of/file/': {'sourceUrl': 'https://storage.googleapis.com/staging.project.appspot.com/hash', 'sha1Sum': 'hash'}, ...]