CLOSE
megamenu-tech
CLOSE
service-image
Blogs
Static Website Hosting Made Easy

Web

Static Website Hosting Made Easy

#react

#tech

Technology, Published On : 15 October 2018
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.

Steps:

  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
Guru raj Dharani

Gururaj Dharani

Project Manager

Engineer and certified ScrumMaster® with proficiency in agile project management. Love blending technical expertise with innovative methods to develop path-breaking solutions.

Modal_img.max-3000x1500

Discover Next-Generation AI Solutions for Your Business!

Let's collaborate to turn your business challenges into AI-powered success stories.

Get Started