Created
April 22, 2009 09:04
-
-
Save takaaki/99671 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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