0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

capistranoでのDeprecation Noticeエラー

Posted at

##エラー内容
capistranoを使用してデプロイ環境を構築している際にDeprecation Noticeの表示がされました。

$ bundle exec cap production deploy

 >Deprecation Notice] Future versions of Capistrano will not load the Git SCM
 >plugin by default. To silence this deprecation warning, add the following to
 >your Capfile after `require "capistrano/deploy"`:

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

##解決法
エラー内容にある以下記述を反映させます。

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

まずはじめに、config/deploy.rbに以下記述があれば削除。

config/deploy.rb
set :scm, :git  ←削除

次に、Capfileに追記。

Capfile
#require "capistrano/deploy"の下に追記。
require "capistrano/scm/git"
install_plugin Capistrano::SCM::Git

capistranoのアップデート後に発生することがあるみたいですが、今回は新規導入時に発生しました。
エラーメッセージの内容をどこに追記すれば良いか分からないこともあると思うので、備忘録も兼ねて残しておきます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?