Ruby on Rails 部署到服务器导致旧的包装脚本

Ruby on Rails 部署到服务器导致旧的包装脚本

我正在尝试将我的 RoR 应用程序部署到 Ubuntu(最新版本,带更新)服务器。该应用程序将使用 Gem“Passenger”运行。但是,我无法运行 Passenger。

rvmsudo bundle exec passenger start

结果是:

Your RVM wrapper scripts are too old, or some wrapper scripts are 
missing. Please update/regenerate them first by running:

rvmsudo rvm get stable && rvm reload && rvmsudo rvm repair all

If that doesn't seem to work, please run:

rvmsudo rvm wrapper ruby-2.6.3 --no-prefix --all

我尝试了所有方法,是的,我确实执行了这些命令。但都没有成功部署。

我甚至清空了整个服务器并从头开始尝试。但还是不行。

第一个结果输出如下:

rvmsudo rvm get stable && rvm reload && rvmsudo rvm repair all
Downloading https://get.rvm.io
Downloading https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer.asc
Verifying /usr/share/rvm/archives/rvm-installer.asc
gpg: WARNING: unsafe ownership on homedir '/home/cloud/.gnupg'
gpg: Signature made Tue Jul 23 21:59:45 2019 UTC
gpg:                using RSA key 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
gpg: Good signature from "Piotr Kuczynski <[email protected]>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 7D2B AF1C F37B 13E2 069D  6956 105B D0E7 3949 9BDB
GPG verified '/usr/share/rvm/archives/rvm-installer'
Downloading https://github.com/rvm/rvm/archive/1.29.9.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.29.9/1.29.9.tar.gz.asc
gpg: WARNING: unsafe ownership on homedir '/home/cloud/.gnupg'
gpg: Signature made Wed Jul 10 08:31:02 2019 UTC
gpg:                using RSA key 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
gpg: Good signature from "Piotr Kuczynski <[email protected]>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 7D2B AF1C F37B 13E2 069D  6956 105B D0E7 3949 9BDB
GPG verified '/usr/share/rvm/archives/rvm-1.29.9.tgz'
Upgrading the RVM installation in /usr/share/rvm/
    Fixing environment link for default.
    Fixing environment for ruby-2.6.3.
Upgrade of RVM in /usr/share/rvm/ is complete.
  * Please do NOT forget to add your users to the rvm group.
     The installer no longer auto-adds root or users to the rvm group. Admins must do this.
     Also, please note that group memberships are ONLY evaluated at login time.
     This means that users must log out then back in before group membership takes effect!
  * WARNING: you have set GEM_HOME="/home/cloud/.rvm/gems/ruby-2.6.3"
     This is conflicting with RVM. Make sure to call:

           unset GEM_HOME


Thanks for installing RVM 

答案1

我知道这个已经过时了,但我在谷歌上自己找到了它。我不知道推荐的解决方案,但我现在正在做的是在 rvm 1.28(创建包装器)和 1.29(执行其他所有操作)之间来回切换。这是一个 PITA,我认为 RVM 维护人员没有经过深思熟虑。他们说它应该在 1.30 中得到修复/改进。

相关内容