Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google app engine 部署到Google应用程序引擎时出错_Google App Engine - Fatal编程技术网

Google app engine 部署到Google应用程序引擎时出错

Google 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文件中指

这是我在部署RUBY应用程序时在日志中看到的错误

错误

已完成第1步第1步:命令“/bin/sh-c bundle install” --部署--without=“development test”&&rbenv rehash”返回一个非零代码:18


根据您提供的一点信息和我遇到的类似问题,我认为您正在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?其他文件?部署命令?