簡體   English   中英

部署到Google App Engine時出錯

[英]Error deploying to Google App Engine

這是部署RUBY應用程序時在日志中出現的錯誤。

錯誤

已完成步驟1的步驟1:命令'/ bin / sh -c bundle install --deployment --without =“ development test” && rbenv rehash'返回了非零代碼:18

考慮到您提供的少量信息以及遇到的類似問題,我認為您是在Flex環境中部署Rails應用程序。 查看它如何決定要使用哪個Ruby版本: https : //cloud.google.com/appengine/docs/flexible/ruby/runtime 按指定在應用程序的根目錄中創建.ruby-version文件可能會有所幫助。 就我而言,我在指定的錯版.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

您是否嘗試過捆綁更新。 對我有用

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM