嗨,我有一个红宝石网站为我的客户。我没有太多关于ruby的知识。网站之前工作得很好。我将相同的设置迁移到了新的服务器上。迁移后,
rvm was unable to use appname@1.9.3因此,我检查了两个服务器中的gemlists。
旧服务器
root@host [/usr/local/rvm/gems/ruby-1.9.3-p484/wrappers]# rvm gemset list_all
gemsets for ruby-1.9.3-p484 (found in /usr/local/rvm/gems/ruby-1.9.3-p484)
=> (default)
global
appname新服务器
root@host [/usr/local/rvm/gems/ruby-1.9.3-p547]# rvm gemset list_all
Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-1.9.3-p547/bin' is not at first place,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
to fix temporarily in this shell session run: 'rvm use ruby-1.9.3-p547'.
gemsets for ruby-1.9.3-p547 (found in /usr/local/rvm/gems/ruby-1.9.3-p547)
=> (default)
global除了路径错误,我注意到,新服务器中缺少一个gemset。如何将其导入到new?
发布于 2014-10-09 20:00:05
在项目的根目录中创建以下文件:
.ruby-gemset:appname
.ruby-版本:1.9.3
然后使用cd PROJECT_ROOT转到项目目录,并运行bundle install
您可以在此处找到有关这些文件的更多信息:http://rvm.io/workflow/projects
https://stackoverflow.com/questions/26276756
复制相似问题