Skip to content

Instantly share code, notes, and snippets.

@edipofederle
Created July 31, 2010 12:16
Show Gist options
  • Select an option

  • Save edipofederle/502118 to your computer and use it in GitHub Desktop.

Select an option

Save edipofederle/502118 to your computer and use it in GitHub Desktop.
#!/bin/sh
cd ~/rails_app/app_name
env -i git reset --hard
env -i git pull origin master
env -i rake db:migrate RAILS_ENV=production
env -i touch ~/rails_app/app_name/tmp/restart.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment