gpt4 book ai didi

google-app-engine - 如何仅为特定文件夹部署我的 GAE 项目?

转载 作者:太空宇宙 更新时间:2023-11-03 15:32:58 25 4
gpt4 key购买 nike

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

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

谢谢!

乔尔

最佳答案

查看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.

关于google-app-engine - 如何仅为特定文件夹部署我的 GAE 项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14183061/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com