找不到Gemfile [英] Could not locate Gemfile

查看:177
本文介绍了找不到Gemfile的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当然不是Ruby开发者,但是我的服务器上有一个使用Ruby,Gems和Bundler的应用程序。我正尝试在另一个用户帐户下安装另一个Ruby,但在同一个VPS上。当我开始运行时

 捆绑安装

我得到以下错误:


无法找到Gemfile


我可以删除./bundle目录的内容,以便重新获取所有Gem以清除错误,但这会对我的其他应用程序造成影响同样的宝石和Bundler? 您没有 Gemfile / code>在您运行该命令的目录中。
Gemfile 是一个包含当前程序的 gem 设置的文件。

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

I get the following error:

Could not locate Gemfile

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.

解决方案

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屋!

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