Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/59.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 在服务器上部署rails代码时出错_Ruby On Rails_Deployment_Capistrano - Fatal编程技术网

Ruby on rails 在服务器上部署rails代码时出错

Ruby on rails 在服务器上部署rails代码时出错,ruby-on-rails,deployment,capistrano,Ruby On Rails,Deployment,Capistrano,当尝试使用capistrano /usr/local/rvm/bin/rvm-shell - No such file or directory ** [deploy:update_code] exception while rolling back: Capistrano::CommandError, failed: "rvm_path=/usr/local/rvm /usr/local/rvm/bin/rvm-shell 'ruby-2.0.0-p353' -c 'rm -rf /hom

当尝试使用
capistrano

/usr/local/rvm/bin/rvm-shell - No such file or directory

 ** [deploy:update_code] exception while rolling back: Capistrano::CommandError, failed: "rvm_path=/usr/local/rvm /usr/local/rvm/bin/rvm-shell 'ruby-2.0.0-p353' -c 'rm -rf /home/xxx/xxxxxx/releases/20151019095324; true'" on xx.xx.xxx.xxx

任何人都有解决方案。

Rvm可能未安装或无法从capistrano中“声明”的用户处访问


请参阅检查您的服务器上是否正确安装了rvm。

ruby软件包未在服务器上配置?检查此链接-,希望此链接对您有效。@sushilprj感谢我遇到的相同错误的链接,但请尝试我没有解决的解决方案。我认为rvm没有安装在服务器上。这是部署所必需的。。我没有想到这一点。我以前在deply.rb文件中使用了“deploy”,“rvm:install_rvm”,现在得到了不同的错误。。。错误:RVM无法使用“Ruby-2.0.0-p353”。。我现在要做什么?是的,我在服务器上检查“哪个RVMShell”命令,然后得到“没有RVMShellin”。我该怎么办?需要在服务器上安装rvm吗?