- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2020-03-27T05:23:10+00:00","default:wikiwriter","wikiwriter")
#author("2020-03-30T02:31:14+00:00","default:wikiwriter","wikiwriter")
&tag(capistrano-git-copy);
*目次 [#jaac7872]
#contents
*関連ページ [#fb413922]
*参考情報 [#xc2a3554]
-2020/03/27(金)現在copyでデプロイする場合これを使うのがよいっぽい。
-[[Florian Schwab / capistrano-git-copy · GitLab:https://gitlab.com/ydkn/capistrano-git-copy]]
*使用方法 [#v4208505]
**インストール [#o22ebe45]
-Gemfileを編集。
#pre{{
group :development do
gem 'capistrano-git-copy', require: false
end
}}
-Capfileを変更
#pre{{
require 'capistrano/git_copy'
install_plugin Capistrano::GitCopy::SCM
}}
-deploy.rbを変更。リポジトリのurlを指定。
#pre{{
set :repo_url, 'ssh://foo/src/test.git'
}}
*トラブルシューティング [#a9858e36]
**設定がdeploy先に反映されない [#sa73f104]
-ローカルの変更ファイルではなくリポジトリにコミットした内容が使われる事に注意。
-「git add . ; git commit -m "aaa"」してから実行しよう。