All Blogs

Static Website Hosting Made Easy

Published On  :   October 14, 2018


Static websites are used to deliver all HTML, JavaScript, images, video and other media files to website visitors and contains no application code within it. Sites which require few authors and contain seldom content changes are the best use cases for static website. Marketing websites or personal blogs are the most used static websites. They are economical, highly reliable websites with little to no manual intervention or administration as well as scalable to handle enterprise level web traffic.

So, do you already have some html and css written for your website and realised hosting is an additional effort? No worries, you can host your static files in less than 2 minutes or precisely in 6 keystrokes.

The must haves of this process include:

  1. Latest version of NodeJs.

  2. Install surge using npm command as below:

  3. npm install --global surge

Now, run surge from within any directory, to publish that directory onto the web.


  1. cd mysite/ navigate to the folder you want to publish

  2. Enter surge and hit enter.

  3. Enter email.

  4. Enter password. ( email and password is one time thing if surge has your email and password eventually you do only 4 steps other than these two)

  5. Hit enter when it prompts for your project path.

  6. Change subdomain to whatever you like or hit Enter
author dp
Gururaj Dharani
Project Manager

A static website is delivered to a user exactly the way it's stored. That means that nothing on the page will change by the user or even the site administrator unless there's a redesign of the site, or the site administrator goes directly into the code to change it.