Free Hosting at BitBucket

posted by Steve Losh on October 13, 2009

One undocumented (to my knowledge) feature of BitBucket is the ability to have them host a static website for you. It’s quick and easy to get started:

  1. Create a repository named yourusername.bitbucket.org on BitBucket.
  2. Clone it to your local machine.
  3. Add a simple index.html file.
  4. Push it back up to BitBucket.

Now visit http://yourusername.bitbucket.org/ and you should see the contents of the index.html file you just uploaded.

BitBucket will serve whatever is in the tip of that special repository as a static website. This is similar to GitHub’s user-level “pages” feature, except that your files don’t get run through Jekyll or any other kind of filter.

Unfortunately, BitBucket does not seem to have an equivalent to GitHub’s project-level “pages”.

BitBucket will host your static website for free.