See the files that will be deploy to Google AppEngine

青春壹個敷衍的年華 提交于 2019-12-01 07:41:38
Dan Cornilescu

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 configured skip_files patterns - see the skip_files row in the app.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:

...
09:31 AM Scanning files on local disk.
...
2016-11-25 09:31:28,131 INFO appcfg.py:2516 Processing file 'mail.py' 
2016-11-25 09:31:28,131 INFO appcfg.py:2657 Ignoring file 'mail.pyc': File matches ignore regex. 
2016-11-25 09:31:28,132 INFO appcfg.py:2516 Processing file 'main.py' 
2016-11-25 09:31:28,132 INFO appcfg.py:2657 Ignoring file 'main.pyc': File matches ignore regex. 
2016-11-25 09:31:28,132 INFO appcfg.py:2516 Processing file 'main.yaml' 
2016-11-25 09:31:28,133 INFO appcfg.py:2516 Processing file 'queue.yaml' 
2016-11-25 09:31:28,133 INFO appcfg.py:2516 Processing file 'templates/admin.html' 
...

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 files

INFO: Manifest: [{'path/of/file/': {'sourceUrl': 'https://storage.googleapis.com/staging.project.appspot.com/hash', 'sha1Sum': 'hash'}, ...]

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!