[英]I am getting this error message when trying to do "cap production deploy"
all...I am new in Rails development.所有...我是 Rails 开发的新手。 can someone tell me why I am getting this error message when trying to do "cap production deploy" ---> Your bundle only supports platforms ["x86_64-darwin-21"] but your local platform is x86_64-linux.有人能告诉我为什么我在尝试执行“cap production deploy”时收到此错误消息 ---> 您的捆绑包仅支持平台 ["x86_64-darwin-21"] 但您的本地平台是 x86_64-linux。 Add the current platform to the lockfile with bundle lock --add-platform x86_64-linux and try again.使用 bundle lock --add-platform x86_64-linux 将当前平台添加到锁定文件中,然后重试。 I have followed all the steps mentioned in the go rails website and done the bundle lock also still I have the same error.我已经按照 go rails 网站中提到的所有步骤进行操作并完成了捆绑锁,但我仍然遇到同样的错误。 I am using the latest ruby and rails versions.我使用的是最新的 ruby 和 rails 版本。 Please help请帮忙
I had a similar issue when first deploying my rails app.第一次部署我的 Rails 应用程序时,我遇到了类似的问题。 I configured a DigitalOcean VM with NGINX + passenger, and got the same error when I ran cap production deploy
.我用 NGINX + passenger 配置了一个 DigitalOcean VM,当我运行cap production deploy
时得到了同样的错误。
What worked for me was to对我有用的是
bundle lock --add-platform x86_64-linux
on my local app在我的本地应用程序上运行bundle lock --add-platform x86_64-linux
cap production deploy
然后运行cap production deploy
This seemed to do the trick for me.这似乎对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.