cf push是否尊重.gitignore的使用? [英] Does cf push respect the use of .gitignore?

查看:64
本文介绍了cf push是否尊重.gitignore的使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用下面的 .gitignore 文件,希望当我推送应用程序时,tmp目录和交换文件将被忽略.但这并没有发生,现在我想知道是否 cf push 甚至考虑了 .gitignore ?

I'm using the .gitignore file below with the hope that when I push my application, the tmp directory and swap files will be ignored. That isn't happening though and now I am wondering if cf push even considers .gitignore?

*.swp
tmp/

有人知道 cf push 是否考虑了 .gitignore 文件吗?

Does anyone know if cf push takes a .gitignore file into consideration?

推荐答案

文件 .cfignore 用于此目的-与 .gitignore 不同,但与 cf 工具类似.

The file .cfignore is used for that purpose -- it is not the same as .gitignore, but rather its analogy for the cf tool.

不将它们用于相同目的的原因是,例如,您可能拥有用于构建的文件(甚至是源代码!),这些文件都转到了Git而不是Bluemix运行时,或者还有其他文件例如凭证或配置,这些凭证或配置将与应用程序一起部署,但仍不转到Git.(您可以使用 .cfignore 排除第一组,而使用 .gitignore .)

The reason for not using them for the same purpose is that you may have for example files that are used for your build (or even source code!) that go to Git but not to the Bluemix runtime, and alternatively, other files like credentials or configurations which are to be deployed with the app but still not go to Git. (You would use .cfignore to exclude the first set, and .gitignore in the other case.)

这篇关于cf push是否尊重.gitignore的使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆