Skip to content

Instantly share code, notes, and snippets.

@joehakimrahme
Created September 18, 2013 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joehakimrahme/6606979 to your computer and use it in GitHub Desktop.
Save joehakimrahme/6606979 to your computer and use it in GitHub Desktop.
Create 3 files and upload them to a Swift container
$ cat index.html
<h1>Index file</h1>
<p>This is the index.html file.</p>
$ cat listing.css
h1 {color: red;}
$ cat 404error.html
<h1>404 File not found!</h1>
<p>We couldn't locate the file you're asking for.</p>
$ for f in index.html listing.css 404error.html; do swift upload my_public_container $f; done
$ swift list my_public_container
404error.html
index.html
listing.css
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment