Let’s review how I deploy “for release” single-page demo sites accompanying tech articles.
Basically it’s a bucket of Amazon S3 files with some DNS book-keeping through my hosting service, BlueHost.
The awesome thing is storing all the interactive bits: JavaScript, CSS, HTML, PNGs hosted out of a Amazon S3 bucket. Seems like S3 isn’t even a web server, but it works that way. S3 buckets are fast and cheap and meant to be banged on by tons of people all day long. The single-page site serves up as if from a dedicated web server, is interactive to user input, and even goes out to a public RESTful API displaying its service responses. Great stuff, right?
Putting my single page demo site up on S3 feels professionally roped off my “real important” web server stuff such as WordPress, email, ftp, PHP/Rails/MySQL R&D.That’s all up on my BlueHost site and I keep that dedicated to just those functions. As a coder I think that decoupling feels like a win. If you don’t want to do it that way no problem – thanks for stopping by.
Using Amazon S3 to serve up the files, because it’s super cheap, I’m also leaning on my hosting company, BlueHost, for internet book-keeping. The DNS book-keeping is uber nerdy, only done once per site, so keep with me as I lay it out step by step below. Believe me that the results are worth the trouble. All of this info I’m writing down is hard-fought knowledge I want to share while recording for future Ken’s sanity.
Not only do I show using Bluehost for the book-keeping bits, I always suggest them for hosting for dev and corp stuff such as: official web site, ftp, email, domain name purchasing, SQL, WordPress hosting, PHP and Rails dev. Whatever feature I want they seem to have it positioned where I need it. It’s awesome in fact.
If BlueHost is so great why am I pushing off this demo site to AWS S3? AWS for me is an app production/release resource. Just separating concerns as any wise coder tries. Eventually you might appreciate AWS EC2 and RDS as well for prod.
I admit this instruction is rather terse, but I believe in you and your mad dev skills. Once you dig in to this I fully expect you’ll successfully parse the bullet-points while connecting the dots. Questions? Hit me up on Twitter and I’ll refine the doc over time.
Step one is making a genius single-page web-app that runs perfectly on your localhost laptop
Wow that’s a bunch of crazy talk I just wrote down, but it’s truly useful stuff to know and experiment with. Hopefully this makes it easier for you considering all the junk I had to learn.
Writing this now I can see this is a tougher task to document than I thought. Surely it gives you a jumping off point and my expectation is that the breadcrumb-like notes I bullet-point guide you to success. I have a lot of faith in you since you’ve gotten this far!
Get a web site going today and build something awesome. I’ve used BlueHost for years and honestly think they have everything I need at the price I want. Choosing them has made my development life easier.
Now that this is finished I can go enjoy a cup of coffee!