Skip to content

Instantly share code, notes, and snippets.

@takaaki
Created April 22, 2009 09:04
Show Gist options
  • Save takaaki/99671 to your computer and use it in GitHub Desktop.
Save takaaki/99671 to your computer and use it in GitHub Desktop.
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment