Permalink
Browse files

moving away from unicorn, add s3 script

  • Loading branch information...
1 parent 228da48 commit b25c654ef5aa5c7ce4edfed2185b7e1930a3f7d6 @tclem committed Jun 24, 2011
Showing with 12 additions and 1 deletion.
  1. +1 −1 bin/server-reload
  2. +11 −0 bin/upload-download-s3
View
@@ -1,4 +1,4 @@
#!/bin/sh
ps aux | grep nginx | awk '{print $2}' | xargs sudo kill -9
sudo nginx
-script/unicorn_dev
+script/server
View
@@ -0,0 +1,11 @@
+curl \
+-F "key=downloads/tclem/tclem.github.com/new_file.jpg" \
+-F "acl=public-read" \
+-F "success_action_redirect=https://github.com/tclem/tclem.github.com/downloads/refresh" \
+-F "Filename=new_file.jpg" \
+-F "AWSAccessKeyId=1DWESVTPGHQVTX38V182" \
+-F "Policy=ewogICAgJ2V4cGlyYXRpb24nOiAnMjExMS0wNi0yNFQyMDowODo0OC4wMDBaJywKICAgICdjb25kaXRpb25zJzogWwogICAgICAgIHsnYnVja2V0JzogJ2dpdGh1Yid9LAogICAgICAgIHsna2V5JzogJ2Rvd25sb2Fkcy90Y2xlbS90Y2xlbS5naXRodWIuY29tL25ld19maWxlLmpwZyd9LAogICAgICAgIHsnYWNsJzogJ3B1YmxpYy1yZWFkJ30sCiAgICAgICAgeydzdWNjZXNzX2FjdGlvbl9yZWRpcmVjdCc6ICdodHRwczovL2dpdGh1Yi5jb20vdGNsZW0vdGNsZW0uZ2l0aHViLmNvbS9kb3dubG9hZHMvcmVmcmVzaCd9LAogICAgICAgIFsnc3RhcnRzLXdpdGgnLCAnJEZpbGVuYW1lJywgJyddLAogICAgICAgIFsnc3RhcnRzLXdpdGgnLCAnJENvbnRlbnQtVHlwZScsICcnXQogICAgXQp9" \
+-F "Signature=mwnFDCoRgkYh9/k88nj3kUQ50n4=" \
+-F "Content-Type=image/jpeg" \
+-F "file=@new_file.jpg" \
+https://github.s3.amazonaws.com/

0 comments on commit b25c654

Please sign in to comment.