简体   繁体   English

我在尝试执行“cap production deploy”时收到此错误消息

[英]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对我有用的是

  1. run bundle lock --add-platform x86_64-linux on my local app在我的本地应用程序上运行bundle lock --add-platform x86_64-linux
  2. commit the gemfile.lock to the repo将 gemfile.lock 提交到 repo
  3. then run cap production deploy然后运行cap production deploy

This seemed to do the trick for me.这似乎对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么在尝试限制部署时会出现“权限被拒绝”的问题? - Why am I getting a “Permission Denied” when trying to cap deploy? 在尝试使用capistrano进行部署时,为什么会出现Psych错误? - Why am I getting a Psych error when trying to deploy with capistrano? 当我在生产中部署我的 ror 应用程序时,我收到以下错误 - when I am deploy my ror application on production then I am getting following error 试图与capistrano一起部署。 上限部署时出现错误:冷 - trying to deploy to DO with capistrano. got an error when cap deploy:cold 我该如何解决Capistrano命令错误,盖帽生产部署? - How can i solve Capistrano command error, cap production deploy? 上限错误,尝试部署无法正常工作 - cap error trying to deploy not working 上限生产部署“ rvm ruby​​…”错误 - cap production deploy 'rvm ruby…' error 嘿,我正在尝试在 heroku 上部署一个 Rails 应用程序,当我运行 git push heroku master 时收到以下错误消息 - hey I am trying to deploy a rails app on heroku, and i get the follow error message when i run git push heroku master 尝试限制deploy:rails迁移时出错 - Error trying to cap deploy:migrations with rails 运行cap生产deploy:initial []时,Ruby on Rails Capistrano'无法找到Gemfile'错误 - Ruby on Rails Capistrano 'Could not locate Gemfile' error when running cap production deploy:initial[]
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM