gpt4 book ai didi

ruby-on-rails - "bundler: command not found: unicorn"在将 Heroku Bamboo 告知的 Procfile 添加到 Cedar 迁移指南之后

转载 作者:行者123 更新时间:2023-12-02 07:28:35 26 4
gpt4 key购买 nike

正如 Bamboo 到 Cedar 迁移指南所述,我将此 Procfile 添加到我的 Heroku 应用程序中:

web: bundle exec unicorn -p $PORT -E $RACK_ENV -c config/unicorn.rb
worker: bundle exec rake jobs:work

然后我运行 bundle install 并推送。现在服务器不再启动:

heroku[web.1]: State changed from up to starting
app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:170:in `block in start'
app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-3.0.19/lib/rails/commands/server.rb:65:in `start'
app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:32:in `start'
app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:160:in `start'
app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-1.2.8/lib/rack/server.rb:217:in `start'
app[web.1]: [2014-07-17 04:02:16] FATAL SignalException: SIGTERM
app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:170:in `select'
app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-3.0.19/lib/rails/commands.rb:30:in `block in <top (required)>'
app[web.1]: [2014-07-17 04:02:16] INFO WEBrick::HTTPServer#start done.
app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-3.0.19/lib/rails/commands.rb:27:in `tap'
app[web.1]: [2014-07-17 04:02:16] INFO going to shutdown ...
app[web.1]: Exiting
app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-1.2.8/lib/rack/handler/webrick.rb:13:in `run'
app[web.1]: script/rails:6:in `require'
app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-3.0.19/lib/rails/commands.rb:27:in `<top (required)>'
app[web.1]: script/rails:6:in `<main>'
app[web.1]: bundler: command not found: unicorn
app[web.1]: Install missing gem executables with `bundle install`

我做错了什么?

最佳答案

gem 'unicorn' 添加到您的 Gemfile,运行 bundle install。提交更新后的 Gemfile 和 Gemfile.lock 文件并将其推送到 Heroku。

关于ruby-on-rails - "bundler: command not found: unicorn"在将 Heroku Bamboo 告知的 Procfile 添加到 Cedar 迁移指南之后,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24794822/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com