Netlify

Netlify can be used both from a web UI or by using command line tools. You can create unlimited domains with the free account. For $45 a month you get team sharing, administrator roles, visitor password control, and email and chat support.

To start with the web UI, simply head to app.netlify.com

# Create and deploy a site using npm and netlify

To start by manually deploying a folder with a static site to Netlify, make sure you have Node.js installed and then follow these steps:

npm install netlify-cli -g; cd ~/my-static-website; netlify deploy

# Creating and deploying a site using hugo

Here we look at how to create a simple hugo site on your laptop, and then to deploy it using netlify. The steps below are based on the tutorial you can find at:

# Continuous Deployment For anything larger than a one page landing, you really should be using a static site generator or a front-end build tool like grunt or gulp.

Netlify lets you link a GitHub repository to a site. Each time you push to GitHub, Netlify runs a build with your tool of choice and deploys the result to our powerful CDN.

# Helpful Hints

If the static site generator you are using is built with NodeJS make sure your package.json contains the name of your tool. Do so by running the following command in your terminal:

$ npm install TOOLNAME --save

If your project directory has the same name as your tool, the above command will fail. So make sure your project name is something different.

You also need a .nvmrc file at the root of your project to tell Netlify which version of NodeJS to use. In the terminal, enter this command:

$ node -v > .nvmrc

To create a file to tell Netlify which version of Node.js to use. The version of node you use is dynamically fetched using nvm and then cached to speed up builds.

# Netlify Templates

# See also