Ruby on rails Linux无法找到Gemfile或.bundle/目录,即使它在/应该在那里
之后,我正在从服务器备份gitlab。我必须输入:Ruby on rails Linux无法找到Gemfile或.bundle/目录,即使它在/应该在那里,ruby-on-rails,ruby,linux,git,backup,Ruby On Rails,Ruby,Linux,Git,Backup,之后,我正在从服务器备份gitlab。我必须输入: sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production 其结果是: Could not locate `Gemfile` or `.bundle/` directory 我做错什么了吗?如果在Gemfile之后使用find命令进行搜索,Linux会找到它,但如果使用locate命令则不会找到它。这是否意味着可能有我的错误?在执行bundle之前,通过
sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
其结果是:
Could not locate `Gemfile` or `.bundle/` directory
我做错什么了吗?如果在
Gemfile
之后使用find
命令进行搜索,Linux会找到它,但如果使用locate
命令则不会找到它。这是否意味着可能有我的错误?在执行bundle
之前,通过find
命令返回:cd directory\u OF_GEMFILE
将目录更改为该目录。您是从源代码安装还是使用OMIBUS安装的?我是从sourceChange目录安装到该目录的,执行bundle
之前,通过find
命令返回:cd DIRECTORY\u OF_GEMFILE
。您是从源代码安装还是使用OMIBUS?我是从源代码安装的