Skip to content

Please change scm setting to :git. #12

@wonderphil

Description

@wonderphil

Hi guys,

This seems to be the same as issue #9

Maybe I am missing something but I just cant not get passed this.

Setup is:
Rails Version: 5.1.6
Cap Version: 3.11.0 (Rake Version: 12.3.1)
capistrano-ssh-doctor version: 1

Capfile:

require "capistrano/setup"
require "capistrano/deploy"

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

require 'capistrano/rbenv'
require 'capistrano/rbenv_install'

require 'capistrano/bundler'
require 'capistrano/rails'

require 'capistrano/unicorn_nginx'
require 'capistrano/postgresql'

require 'capistrano/safe_deploy_to'
require 'capistrano/ssh_doctor'

Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }

deploy.rb

lock "~> 3.11.0"
set :rbenv_ruby, "2.5.1"

set :application, "some_app"
set :repo_url, "git@github.com:wonderphil/some_app.git"

Gemfile

....
group :development do
  gem "capistrano", "~> 3.10"                
  gem 'capistrano-rbenv'                     
  gem 'capistrano-rbenv-install'             
  gem 'capistrano-bundler'                  
  gem 'capistrano-rails'                     
  gem 'capistrano-unicorn-nginx'             
  gem 'capistrano-postgresql'                
  gem 'capistrano-safe-deploy-to'            
  gem 'capistrano-ssh-doctor'
end
....

when I run:

$ cap production ssh:doctor
It seems you are NOT using git as a Capistrano strategy. At the moment capistrano-ssh-doctor supports only git.
Please change `scm` setting to `:git`.

If i add the scm setting i get

$ cap production ssh:doctor
[Deprecation Notice] `set :scm, :git` is deprecated.
To ensure your project is compatible with future versions of Capistrano,
remove the :scm setting and instead add these lines to your Capfile after
    `require "capistrano/deploy"`:

    require "capistrano/scm/git"
    install_plugin Capistrano::SCM::Git
It seems you are NOT using git as a Capistrano strategy. At the moment capistrano-ssh-doctor 
supports only git.
Please change `scm` setting to `:git`.

Any help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions