Surge is a static web publishing tool for the command line. It's the most simple and easy way to deploy a static site that I've ever seen!. Surge is free and includes a lot of cool features out of the box. Just with a single command you will get your site deployed.
#What do you need ?
To install Surge just run:
$ npm i -g surge
After that you will need to create a surge account providing an email and password. Once you're registered and logged in, you can deploy a static site running
$ surge login $ surge
You'll be asked for the path or folder you want to deploy and the domain for the project. You can add a custom domain inplace of the surge.sh subdomain.
Success! Project is published and running at carloscuesta.surge.sh
list command to get a to see every project you’ve published on Surge. To delete a site on Surge just run
$ surge list $ surge teardown
Did you enjoyed the article ?