Skip to content

Instantly share code, notes, and snippets.

@randyjhunt
Created January 4, 2009 22:59
Show Gist options
  • Save randyjhunt/43205 to your computer and use it in GitHub Desktop.
Save randyjhunt/43205 to your computer and use it in GitHub Desktop.
# Capistrano deployment scripts
# the deployment script will go to default environment (usually "dev"), others like "staging" can be targeted by using "cap staging deploy", etc.
# update the server with the latest revision in the repository
cap deploy
# run rake db:migrate on the server
cap deploy:migrate
# updates the server with the latest project in the repository and then runs rake db:migrate
cap deploy:migrations
# Restart the mongrel cluster
# useful if site gets slow from memory leaks
# likely used on production environment
cap mongrel:cluster:restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment