LoginSignup
5
6

More than 5 years have passed since last update.

Capistranoで特定のファイルをデプロイ時に削除(除外)する

Last updated at Posted at 2015-02-23

Excluding files from being deployed with Capistrano
Capistranoでデプロイ時に特定のファイルをデプロイ対象から外す

.gitattributesファイルを作成

.gitattributes
.gitattributes export-ignore
.gitignore export-ignore
features export-ignore
spec export-ignore

自分の場合はrbenvの.rbenv-versionを除外した。
spec/とすると除外されないことがあった。specで除外された。
(Gitのバージョンなどで違うかもしれない)
参考: StackOverflow git archive : export-ignore, ignoring directories

5
6
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
5
6