3

我想知道如何仅为特定文件夹部署我的 Google App Engine 项目?

例如,如果我的项目源文件夹是“src”,并且在这个 src 文件夹中有很多子文件夹。说,我有 css、app、images 和 js 文件夹,但我只想将 css、app 和 images 文件夹部署到 GAE,我希望 GAE 在部署期间忽略 js 文件夹,有什么办法可以这样做在 app.yaml 文件中设置?

谢谢!

乔尔

4

1 回答 1

5

Have a look at skip_files

Skipping Files

Files in your application directory whose paths match a static_dir path or a static_files upload path are considered to be static files. All other files in the application directory are considered to be application program and data files.

The skip_files element specifies which files in the application directory are not to be uploaded to App Engine. The value is either a regular expression, or a list of regular expressions. Any filename that matches any of the regular expression is omitted from the list of files to upload when the application is uploaded.

于 2013-01-06T14:52:11.310 回答