takaaki (owner)

Revisions

gist: 99671 Download_button fork
public
Public Clone URL: git://gist.github.com/99671.git
deploy.rb
1
2
3
4
5
6
7
8
9
10
11
12
# Stolen from http://vimeo.com/369095
 
# configファイルをリリースパスへ移す。
# GitやSubversionにdatabase.ymlやconfig.ymlをignoreさせて
# 設定ファイルがたくさんの人に見られてしまうのを避ける。
# 実際にデプロイする前には、"scp"でローカルからWebサーバーの"#{shared_path}/config/"まで
# 手動で移す。
task :update_config, :roles => [:app] do
  run "cp -Rf #{shared_path}/config/* #{release_path}/config"
end
after "deploy:update_code", :update_config