Those people on the east coast were tweeting early, before I even rolled open my eyes, but this caught my attention:
— Gardner Campbell (@GardnerCampbell) May 30, 2015
Dave Winer created this interesting PagePark thing, if I grok it correctly, it’s a bunch of standalone files that can run a web server for static content sites, ostensibly even from a DropBox; what’s cool is that you can host a bunch, a whack sock of domains from one PagePark. Or as Dave explains:
I wrote this simple HTTP server to park domains I’ve bought but not yet used.
Each domain is in its own folder. The content for that domain is in the folder. I went a little wild with content types, it can serve Markdown docs, or run JS code. And of course HTML, text files, images, movies, etc.
Yet it’s still very simple. Which is the point. ;-)
It’s 90 percent of what all web servers do, so if you learn how to run PagePark, you’re learning how to run a web server. A real one you can use to host your sites. And it’s easy to hack the code if you want to.
Now hold the bus- what is a static web site? It’s not old crufty 1990s HTML (well it could be)- with jQuery and markdown and code libraries you get stuff like jekyll — a lot of people are using that for a blog platform. Or it’s anything you can create in Mozilla Thimble. It’s no more MySQL databases. It’s stuff you can run from your laptap via localhost://.
Or what some call Native Web Apps.
There are also ways to run web sites from Google Drive — it does mean files need to be moved to drive, and there is some funky iframe stuff to point a domain at a google drive hosted site. I do have my magical Martin Hawksey Genius flavored twitter archive hosted on Google Drive — the magic of Hawksey is it automatically updates. And is searchable. I have gotten crazy amounts of archival use by being able to retrieve my old tweets. I have a forwarding subdomain pointing there http://tweets.cogdogblog.com which you can see resolves to some ugly google drive url.
I came across something related to both of these a few months back, but also different in a way I think is important for reclaiming sake. I completely forgot to write it up.
It’s called surge and you can learn more about it at http://surge.sh or…
Zero-bullshit, single–command, bring your own source control web publishing CDN. Yes, it’s free.
Okay, there is a bit of geekiness to it, since you have to do a few things at the command line. Fear not. You first need to install Node.js – that was a download and a one click install (hopefully you have not run away shrieking yet).
Then, you open your terminal program, and run this command
npm install --global surge
Note, you probably want to run this as super admin so do
sudo npm install --global surge
and it will run once you enter your admin password (your login password in Mac OSX).
That’s it. You have surge on your computer. I think the first time it asks you to create an account based on your email.
I just made a site with surge. It’s a bit of HTML and jQuery I did as a prototype for something I made in MOzilla Thimble. But it just sites in the local server of my MacBookPro. To “surge” it, I just open terminal, type CD and drag the folder from my desktop into terminal so it inserts the path, and press return (CD puts me in the folder from the terminal)
Then I just type the command
and press return/enter. Off it goes. Files are uploaded to some nebulous cloud place. It generates a random subdomain, but you can pick one. That thing I just uploaded is at http://photoshoot.surge.sh (it’s a thing that lets you click on parts of a large image and it generates little snapshots at the bottom).
I’ve made a copy of a presentation I did in 2014 at Skidmore College, hosted on my lab site, at http://idocs.surge.sh. My flickr CC attribution Helper (published on github) is surged at http://flickr-cc-helper.surge.sh
Oh, I forgot as well http://tcc1996.surge.sh/ is my 1996 retro presentation, done all as a static HTML (a bootstrap powered theme) presentation, including jQuery animation and embedded video.
A new command
surge list lists all my surge published sites:
Now this probably is not overly impressive. But what is key is that all the files originate first on my computer, then I push a copy to the cloud with surge. It’s not reclaiming, it’s pre-claiming. I have full control over the source. I can yank it off at anytime. If, say something goes wonky in the surge CDN, quite possibly in the future I can push it elsewhere (or put it in DropBox, Google Drive). If I don’t want a surge.sh subdomain, I can point any domain to it.
From what I recall, when you update, it just deals with the pages that have changed.
Who has few domains they are not using? Surge is a great way to create a simple holding page, and have it hosted, for free. There’s no reason to let those funky domains hang out un-used! Or as they say, Make Something of your Ridiculous Domains.
Or consider this possibility. Let’s say your students are creating work to go online. They can of course be ahead of the curve and get their own domain. They can toss all of their work into the LMS or the institution web site. But let’s say you have students create their work on their computer as a standalone site, and push it to surge. If they no longer want it, they can remove it all. It’s like a free web/file server that the owner fully controls. And all the source files stay at home.
I don’t know what the business model is. I don’t know where the files go (an issue for many if its a US based server).
I am not quite sure of more possibilities, but there is something simple and beautiful about surge. I leave it to others to shoot holes in my optimism.
The post "Preclaiming A Web Site With Surge" was originally squeezed out of the bottom of an old rusted tube of toothpaste at CogDogBlog (http://cogdogblog.com/2015/05/with-surge/) on May 30, 2015.