Static Website Hosting Made Easy

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:
    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

Voila! Your static website is now hosted and running good!


4 comments on “Static Website Hosting Made Easy


Hi there, after reading this amazing paragraph i am as well delighted to share my knowledge here with friends.

Leave a Reply

Your email address will not be published. Required fields are marked *