Skip to content

Instantly share code, notes, and snippets.

@hosh
Created September 9, 2009 18:25
Show Gist options
  • Save hosh/183943 to your computer and use it in GitHub Desktop.
Save hosh/183943 to your computer and use it in GitHub Desktop.
task :after_update_code, :roles => [:db] do
run <<-EOF
cd #{release_path} &&
rm -fr db && ln -ns #{shared_path}/db db &&
cp config/database.yml.production config/database.yml &&
git submodule update --init
EOF
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment