部署到gcloud时找不到捆绑

时间:2019-02-01 21:34:15

标签: ruby-on-rails deployment google-cloud-platform

我正在将Rails应用程序部署到Google Cloud App Engine。由于添加

config.action_mailer.default_url_options = { host: 'foobar.appspot.com'}

要production.rb,生成上部署失败。这是日志:

INFO[0108] RUN bundle install --deployment --without="development test" && rbenv rehash 
INFO[0108] cmd: /bin/sh 
INFO[0108] args: [-c bundle install --deployment --without="development test" && rbenv rehash] 
/bin/sh: 1: bundle: not found
error building image: error building stage: waiting for process to exit: exit status 127

1 个答案:

答案 0 :(得分:0)

有2个选项,您应该尝试:

  1. bundle更改为bundler
  2. 使用bundler之类的东西手动安装gem install bundler -v 1.17.1