ruby-on-rails - 用 Rails 思考 Sphinx : should I include these files in my git push?

标签 ruby-on-rails ruby-on-rails-3 git sphinx thinking-sphinx

我在 Rails 应用程序中收到了很多未跟踪/修改的文件,如下所示:

db/sphinx/development/user_core.spa
db/sphinx/development/user_core.spd
db/sphinx/development/book_core.sph
db/sphinx/development/book_core.spi
db/sphinx/development/book_core.spp
db/sphinx/development/book_core.sps

等等

我应该在提交并推送到 git 时包含这些内容,还是应该将 db/sphinx/development/* 放入我的 .gitignore 文件中?

--在得到下面的答案后编辑--

我最终将其添加到我的 .gitignore 文件中...

# Ignore certain Sphinx files
/db/sphinx/*
/config/*.sphinx.conf

...然后执行此处推荐的操作:Ignore files that have already been committed to a Git repository

最佳答案

您应该将它们添加到 .gitignore。它们类似于数据库文件。我认为您可能想要 checkin 的唯一 sphinx 特定文件是 config/sphinx.yml 文件,假设它不包含任何敏感信息。

关于ruby-on-rails - 用 Rails 思考 Sphinx : should I include these files in my git push?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11963589/

相关文章:

ruby-on-rails - gem /bundle 程序加载错误: can't activate. ..已激活

mysql - ruby on rails,嵌套属性,采用最高属性

git - 尝试重新定位 HEAD 指针时拒绝更新分支提示

ruby-on-rails - 检查数组的每个元素是否包含在另一个数组的一组值中

ruby-on-rails - 如何使用 rails 3 显示路径在我的 Ruby on Rails 项目目录之外的图像?

git - git pull origin master 和 git pull origin/master 的区别

git - 如何在 Jenkins 中配置 git submodule 分支?

ruby-on-rails - Heroku 配置 keystore 错误

ruby-on-rails - ActiveStorage 是否可以创建用于直接上传的 blob 并在上传完成之前将其附加到模型?

ruby-on-rails - rails : Find rows without connection in HABTM relation