找不到 Gemfile [英] Could not locate Gemfile
问题描述
我当然不是 Ruby 开发人员,但我的服务器上有一个使用 Ruby、Gems 和 Bundler 的应用程序.我正在尝试在不同的用户帐户下但在同一个 VPS 上安装另一个 Ruby.当我去跑步时
I'm certainly no Ruby developer but I have an application on my server using Ruby, Gems, and Bundler. I am trying to install another Ruby on under a different user account but on the same VPS. When I go to run
bundle install
我收到以下错误:
找不到 Gemfile
Could not locate Gemfile
我可以删除 ./bundle 目录的内容,以便重新获取所有 Gem 以清除错误,但这会对使用相同 Gems 和 Bundler 的其他应用程序产生影响吗?我不想冒险关闭其他应用程序.
I could remove the contents of the ./bundle directory so that all Gems are re-fetched to clear the error but will this have an impact on my other application using the same Gems and Bundler? I don't want to risk taking the other app down.
推荐答案
运行该命令的目录中没有 Gemfile
.Gemfile
是一个包含 当前 程序的 gem
设置的文件.
You do not have Gemfile
in a directory where you run that command.
Gemfile
is a file containing your gem
settings for a current program.
这篇关于找不到 Gemfile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!