Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

So currently GoogleAppEngineLauncher is pointing 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
like image 220
ryan Avatar asked Feb 15 '26 22:02

ryan


1 Answers

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.

like image 94
Nick Johnson Avatar answered Feb 19 '26 04:02

Nick Johnson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!