作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试使用 cf-gradle-plugin 将静态应用程序部署到Cloud Foundry。
在我的gradle文件中,我定义了buildpack:
buildpack = "https://github.com/cloudfoundry/staticfile-buildpack.git#v1.1.0"
file = file('.')
最佳答案
没有使用Gradle插件的v1版本过滤文件的方法。正如您从issue on the project可能看到的那样,在v2中应该支持.cfignore。
目前,您可以使用Gradle使用复杂的filtering rules that Gradle supports将项目内容打包到zip存档中,然后在Cloud Foundry Gradle插件中指定zip文件。
关于gradle - 使用cf-gradle-plugin推送到Cloud Foundry时如何指定要忽略的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33798896/
我是一名优秀的程序员,十分优秀!