Capistrano aborts when you run bundle install Rails 4

0

I have a problem doing deploy on Ubuntu 16.04 in Digital Ocean, specifically when I run $ cap production deploy --trace the command is aborted in the part where bundle: install , the last line where capistrano no longer passes is this: $HOME/.rbenv/bin/rbenv exec bundle install --path /home/deployer/RMG_rodeobest/shared/bundle --without development test --deployment --quiet which runs on the server directly, and answers me Could not locate Gemfile but I do not understand why this happens?

I add here the log

The symbolic links of deploy.rb :

# Default value for :linked_files is []
set :linked_files, %w{config/database.yml config/secrets.yml}

# Default value for linked_dirs is []
set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system}

Capfile:

# Load DSL and Setup Up Stages
require 'capistrano/setup'

# Includes default deployment tasks
require 'capistrano/deploy'

# Includes tasks from other gems included in your Gemfile
# If you are using rbenv add these lines:
require 'capistrano/rbenv'
set :rbenv_type, :user # or :system, depends on your rbenv setup
set :rbenv_ruby, '2.3.1'

require 'capistrano/bundler'
require 'capistrano/rails'
# require 'capistrano/passenger'

# Loads custom tasks from 'lib/capistrano/tasks' if you have any defined.
Dir.glob('lib/capistrano/tasks/*.cap').each { |r| import r }

Any idea what may be happening?

    
asked by Carlos Gómez 30.08.2016 в 19:25
source

1 answer

0

When you bundle: install capistrano can not find Gemfile.

Try several things:

  • check that git is not excluding the Gemfile file from the repository. If so, you are not copying it to your droplet at the time of deploying.
  • try to add the Gemfile file in the linked_files of deploy.rb
  • last and worst case of all, copy the file by hand
answered by 20.12.2016 в 16:32