Skip to content

Instantly share code, notes, and snippets.

@kastner
Created November 1, 2008 16:28
Show Gist options
  • Select an option

  • Save kastner/21540 to your computer and use it in GitHub Desktop.

Select an option

Save kastner/21540 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
%w|back1 front1 static tagback|.each do |host|
`source ~/.keychain/harland-sh && ssh #{host} ./update`
end
#!/bin/bash
cd tagmy
git pull
rm -rf /var/www/tagmy/*
cp -a * /var/www/tagmy/
if [ -f .htaccess ]; then
cp .htaccess /var/www/tagmy/
fi
chgrp www-data /var/www/tagmy -R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment