使用Capistrano进行部署时找不到Puma gem

时间:2015-12-24 02:12:07

标签: ruby-on-rails ruby capistrano capistrano3 puma

我想将我的应用程序与Capistrano和Puma一起部署到VPS,但每次我收到此错误:

INFO [17b91266] Running RBENV_ROOT=~/.rbenv RBENV_VERSION=2.2.4 ~/.rbenv/bin/rbenv exec bundle exec puma -C /home/deploy/applications/app/shared/puma.rb --daemon as deploy@11.111.11.11
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as deploy@11.111.11.11: Exception while executing as deploy@11.111.11.11: bundle exit status: 127
bundle stdout: bundler: command not found: puma
Install missing gem executables with `bundle install`
bundle stderr: Nothing written

的Gemfile:

gem 'puma'
group :production do
  gem 'capistrano-rails'
  gem 'capistrano-bundler'
  gem 'capistrano-rbenv'
  gem 'capistrano3-puma'
end

Capfile:

require 'capistrano/setup'
require 'capistrano/deploy'
require 'capistrano/rbenv'
require 'capistrano/bundler'
require 'capistrano/rails'
require 'capistrano/puma'

更新

解决了这个问题。我没有用最后的更改更新分支“master”。

1 个答案:

答案 0 :(得分:0)

您似乎需要在服务器上运行rbenv rehash,这就是为什么它无法找到美洲狮可执行文件