From 2beb79166eda8770ae983a72be1ce0f135e19293 Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 7 Aug 2019 22:11:07 -0500 Subject: [PATCH] capistrano: fix git deprecation warning. --- Capfile | 3 +++ config/deploy.rb | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Capfile b/Capfile index 0c2b1b008..0b7c7fce0 100644 --- a/Capfile +++ b/Capfile @@ -4,6 +4,9 @@ require 'capistrano/setup' # Include default deployment tasks require 'capistrano/deploy' +require "capistrano/scm/git" +install_plugin Capistrano::SCM::Git + # Include tasks from other gems included in your Gemfile require 'capistrano/rbenv' require 'capistrano/rails' diff --git a/config/deploy.rb b/config/deploy.rb index f40d859a5..1ddc09a64 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -2,7 +2,6 @@ set :stages, %w(production development staging) set :default_stage, "staging" set :application, "danbooru" set :repo_url, "git://github.com/r888888888/danbooru.git" -set :scm, :git set :deploy_to, "/var/www/danbooru2" set :rbenv_ruby, "2.5.1" set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle')