johannes wagener
 
In the last months I’ve worked more and more on small client side apps and hacks. They usually consist only of a couple of html files, javascripts and stylesheets and don’t require any dynamic backend at all. 
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:
  http://ponyho.st  http://github.com/jwagener/ponyHost
Happy Hacking.

 

In the last months I’ve worked more and more on small client side apps and hacks. They usually consist only of a couple of html files, javascripts and stylesheets and don’t require any dynamic backend at all. 

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:

  http://ponyho.st
  http://github.com/jwagener/ponyHost

Happy Hacking.

  1. potomak reblogged this from johanneswagener
  2. johanneswagener posted this