我正在try 使用以下说明部署一个玩具rails 7应用程序: https://cloud.google.com/ruby/rails/appengine;但是,该过程在步骤2失败.如果我理解下面的消息,我需要添加命令
bundle lock --add-platform x86_64-linux
个
到安装过程中.但是,我不知道在哪里指定安装过程(例如,要运行哪些Bundle 包命令).指令只是简单地说创建app.yaml
,然后运行gcloud app deploy
.
Step #2: [DEPRECATED] The `--deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local deployment 'true'`, and stop using this flag
Step #2: [DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local without 'development test'`, and stop using this flag
Step #2: Your bundle only supports platforms ["x86_64-darwin-23"] but your local platform
Step #2: is x86_64-linux. Add the current platform to the lockfile with
Step #2: `bundle lock --add-platform x86_64-linux` and try again.
Step #2: The command '/bin/sh -c bundle install --deployment --without="development test" && rbenv rehash' returned a non-zero code: 16
Finished Step #2
ERROR
ERROR: build step 2 "gcr.io/cloud-builders/docker@sha256:b30a2bedbbd24823a41fe768379ab8dd362cd71c0eb6cfd6de58b225805e4c13" failed: step exited with non-zero status: 16
Step #2: