12
12

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 5 years have passed since last update.

Capistrano でマシン上のソースコードをそのまま Deploy

Posted at

deploy_via に :copy を設定することで、Deploy 先サーバから SCM にアクセスするのではなく、Capistrano を実行しているマシン上のソースコードを Deploy 先に送ることができる。

deploy.rb
# SCM は使わない。
set :scm, :none

# local_repository が重要。. = Rails Application のルートディレクトリ。repository の設定がないと怒られるので、とりあえず設定。どう使われているのかがよくわかっていない。。。
set :repository, "."
set :local_repository, "."

# 今回のポイント
set :deploy_via, :copy
12
12
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
12
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?