Skip to content

Commit

Permalink
Adds publish function
Browse files Browse the repository at this point in the history
This is an old function, but is pushes some files to an ec2server. It is pretty
brittle, so be carefule.
  • Loading branch information
trianglesphere committed Mar 26, 2016
1 parent 5e4e818 commit 423db92
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions zsh/publish
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Pushes the given webpages to my ec2 server
# Warning, this is very brittle, and the file paths must match exactly

function publish() {
for file_path ($*);
do scp -i ~/.ssh/joshua.pem $file_path $ec2server:/data/www/$file_path
done
}

0 comments on commit 423db92

Please sign in to comment.