Out of pure laziness I’ve just “deployed” most of them in my public DropBox folder and then just shared the public link. That works amazingly well but has the big drawback of ugly URLs! What’s missing is very simple, fast way of setting up and deploying new websites.
The Amazon S3 website feature that was introduced a couple of month ago is already quite handy for this.
One thing which is still a hazzle is setting up the CNAME record to get a nice hostname. I’ve fixed that by setting up a wildcard A record for *.ponyho.st, so basically everyone can now create a S3 bucket for a ponyho.st subdomain and use it as a website. Nice.
The other problem is to make the creation of the bucket and the pushing of the files as simple as possible. For that I’ve created a quick n dirty gem that takes care of this:
$ cd your-website
$ gem install ponyhost
$ ponyhost create foobar
$ ponyhost push foobar
$ open http://foobar.ponyho.st
If you don’t like the *.ponyho.st domain you can also use your own domain by simply naming the bucket www.yoursite.com and setting up a CNAME record to s3-website-us-east-1.amazonaws.com.
As a bonus I’ve included a very basic HTTP server to simplify local development.
Have a look at “ponyhost help“ for more infos or find all the stuff here: