gpt4 book ai didi

ruby-on-rails - "bundle exec rake"没有 't honor "没有”

转载 作者:数据小太阳 更新时间:2023-10-29 07:33:23 28 4
gpt4 key购买 nike

在从源代码安装 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 gem 不见了,毕竟它只在我用“without”排除的“开发”和“测试”组中。

知道这里发生了什么吗?

最佳答案

想通了,有点愚蠢的原因:RAILS_ENV 应该已经自动设置,但它不是,所以当然会出错。

关于ruby-on-rails - "bundle exec rake"没有 't honor "没有”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45018963/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com