gpt4 book ai didi

ruby-on-rails - 试图将项目上传到 Heroku,Heroku 说我的 binstubs 被破坏了

转载 作者:太空宇宙 更新时间:2023-11-03 16:42:09 25 4
gpt4 key购买 nike

我无法将项目上传到 Heroku,在与他们的支持人员交谈后,他们告诉我以下内容:

Your binstubs are still messed up

"#!/usr/bin/env ruby2.3 APP_PATH = File.expand_path('../config/application', dir) require_relative '../config/boot' require 'rails/commands'"

You need that to say "#!/usr/bin/env ruby On the top line."

It looks like you may have a bad install of ruby. I recommend using chruby and ruby-install to manage multiple ruby installations locally. You can manually fix it in all of your bin/* files but you should also probably put in some work to figure out what is wrong on your system that generated those lines in the first place.

接下来我应该采取什么步骤来纠正这个问题。我对 binstubs 不是很精通,我不确定如何继续或者是什么导致我的 binstubs 最初变得困惑。到目前为止,我对 Ruby 没有任何问题,我正在运行 ruby​​

luis@luis-Inspiron-7559:~/Desktop/mls2$ ruby -v
ruby 2.3.4p301 (2017-03-30 revision 58214) [x86_64-linux-gnu]

Issue resolved using rbenv. Started a new rails app and copied the binstubs of the new app into my existing app and it corrected the issue and app is posted to Heroku.

最佳答案

您可以尝试将文件 .ruby-version 放入根项目文件夹,内容为:

ruby 2.3.1

或您的 ruby 版本。祝你好运!

关于ruby-on-rails - 试图将项目上传到 Heroku,Heroku 说我的 binstubs 被破坏了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44598407/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com