Ask A Question

Notifications

You’re not receiving notifications from this thread.

Got error message when I install Capistrano, stuck at deployment for two days.

xiazhaoyang asked in Servers

What's the reason it doesn't work with Capistrano 3? Rails 5.2.1.1 has an important security fix that you'll want to get running in production as soon as possible so your server doesn't get hacked.

Reply

Hi Chris, which version of rails did you use in your tutorial? Did you test with Rails 5.2.1.1 ?

Reply

Hi Christ, i have the same error on capistrano : LoadError: cannot load such file -- capistrano-rails

group :development do
  # Access an interactive console on exception pages or by calling 'console' anywhere in the code.

  # adding capistrano
  gem 'capistrano', '~> 3.11'
  gem 'capistrano-passenger', '~> 0.2.0'
  gem 'capistrano-rails', '~> 1.4'
  gem 'capistrano-rbenv', '~> 2.1', '>= 2.1.4'
end

and my Capfile

# Load DSL and set up stages
require 'capistrano/setup'

# Include default deployment tasks
require 'capistrano/deploy'

require 'capistrano/scm/git'
install_plugin Capistrano::SCM::Git

require 'capistrano-rails'
require 'capistrano/rbenv'
require 'capistrano/passenger'

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

set :rbenv_type, :user
set :rbenv_ruby, '2.6.5'

i don't know what happend.

thanks

Reply

@Mvondo, sounds like you forgot to add the capistrano-rails gem to your Gemfile.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,329+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.