开发者

When I deploy code through the GoogleAppEngineLauncher, does it upload all files?

So currently GoogleAppEngineLauncher is poin开发者_如何学运维ting to a directory that contains my app.yaml file, along with several other directories - Let's say they are directory A, B and C. If A and B contain python files, template files etc. used by the app, but directory C contains no code whatsoever (it's just a misc directory with random stuff in it), will it still get uploaded when I deploy code?

Here is my app.yaml file:

application: myapp
version: 1
runtime: python
api_version: 1

handlers:
- url: /stylesheet
  static_dir: stylesheet

- url: /images
  static_dir: images

- url: /.*
  script: main.py


By default, everything (excepting a few special patterns such as 'dotfiles') gets uploaded as data files, accessible by your app, unless app.yaml specifies that certain files should be served as static files instead.

If you want to exclude files from being uploaded at all, you need to set the skip_files regular expression in your app.yaml, as described here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜