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

标签 google-app-engine deployment

我想知道如何仅为特定文件夹部署我的 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/

相关文章:

ruby-on-rails - Capistrano 3 部署要求输入 SSH 密码,但无法输入

azure - 在 Azure 中设置和部署多部分 Web 应用程序

java - 为什么GAE内存缓存不断重置?

java - GAE Long 太长了有没有办法让 Long ID 变短?

iis - 从 Visual Studio Team Services 中的构建部署到私有(private) IIS 服务器

grails - 在应用程序启动期间对Grails合并的配置进行故障排除

google-app-engine - 使用 gradle 部署 GAE 时出现奇怪的构建失败

google-app-engine - 如何在带有 HTML5 音频标签的 jsp 文件中使用应用程序引擎的 blob 存储的 Blob-key 播放 mp3 文件?

google-app-engine - Golang GAE - 更改数据存储结构中的变量名称

multithreading - Go 如何处理 Google App Engine 上的并发请求