在源代码的GitLab安装中,我在运行rake
等二进制文件时遇到问题。我从未见过我自己的Ruby或Rails项目的类似问题:
# bundle config
Set for your local app (/mnt/data/www/gitlab.bitcetera.com/source/gitlab/.bundle/config): "1"
path
Set for your local app (/mnt/data/www/gitlab.bitcetera.com/source/gitlab/.bundle/config): "vendor/bundle"
without
Set for your local app (/mnt/data/www/gitlab.bitcetera.com/source/gitlab/.bundle/config): "development:test:unicorn:mysql:kerberos:metrics"
disable_shared_gems
Set for your local app (/mnt/data/www/gitlab.bitcetera.com/source/gitlab/.bundle/config): "true"
# bundle install --deployment --without development test unicorn mysql kerberos metrics
# bundle config
The Gemfile's dependencies are satisfied
# bundle exec rake --tasks
rake aborted!
LoadError: cannot load such file -- haml_lint/rake_task
查看Gemfile的相关部分:
group :development, :test do
[...]
gem 'haml_lint', '~> 0.21.0', require: false
[...]
end
当然haml_lint
宝石遗失了,毕竟它只是在“开发”和“测试”组中,我被排除在“没有”之外。
知道这里发生了什么吗?
答案 0 :(得分:3)
想出来,有点愚蠢的理由:RAILS_ENV应该已经自动设置但当然不会出现问题。