Google app engine 部署到Google应用程序引擎时出错
这是我在部署RUBY应用程序时在日志中看到的错误 错误 已完成第1步第1步:命令“/bin/sh-c bundle install” --部署--without=“development test”&&rbenv rehash”返回一个非零代码:18Google app engine 部署到Google应用程序引擎时出错,google-app-engine,Google App Engine,这是我在部署RUBY应用程序时在日志中看到的错误 错误 已完成第1步第1步:命令“/bin/sh-c bundle install” --部署--without=“development test”&&rbenv rehash”返回一个非零代码:18 根据您提供的一点信息和我遇到的类似问题,我认为您正在flex环境中部署Rails应用程序。查看它是如何决定使用哪个Ruby版本的:。它可能有助于在指定的应用程序根目录中创建.ruby版本文件。在我的例子中,我在我的.ruby version文件中指
根据您提供的一点信息和我遇到的类似问题,我认为您正在flex环境中部署Rails应用程序。查看它是如何决定使用哪个Ruby版本的:。它可能有助于在指定的应用程序根目录中创建
.ruby版本
文件。在我的例子中,我在我的.ruby version
文件中指定了错误的版本:它与我的Gemfile
中的版本不匹配,因此它给了我以下错误消息:
Step #1: Step 14/17 : RUN bundle install --deployment --without="development test" && rbenv rehash
Step #1: ---> Running in <some random hash>
Step #1: Your Ruby version is 2.4.1, but your Gemfile specified 2.5.5
Step #1: The command '/bin/sh -c bundle install --deployment --without="development test" && rbenv rehash' returned a non-zero code: 18
Step#1:Step 14/17:运行bundle安装--部署--而不使用=“development test”&&rbenv rehash
第1步:-->磨合
步骤1:您的Ruby版本是2.4.1,但您的Gemfile指定了2.5.5
步骤1:命令'/bin/sh-c bundle install--deployment--without=“development test”&&rbenv rehash'返回一个非零代码:18
您是否尝试过捆绑包更新。它对我有用你能提供更多信息吗?应用程序引擎是标准的还是灵活的?app.yaml?其他文件?部署命令?