Netlify Hosting

How to host a website on Netlify

Netlify logo

Note if you have any dyanmic pages (eg. are using php) then you will need to use an alternative for hosting.

Information on Netlify may be found here.

To host a website on Netlify you will first need to upload your website to a respository on BitBucket, GitHub or GitLab.

By far the easiest way to host a website on BitBucket, GitHub or GitLab is to import or fork an existing site repository from BitBucket, GitHub, GitLab or any other code sharing platform. See here for a variety of templates you can use to make websites.

Once you have a website on BitBucket, GitHub or GitLab you can host it on Netlify by following these steps:

  1. Singup for Netlify using either BitBucket, GitHub, GitLab or email;
  2. Login to Netlify using either BitBucket, GitHub, GitLab or email;
  3. Click on New site from Git;
  4. Choose which Git provider you want to use (BitBucket, GitHub or Gitlab);
  5. Select the repository containing your website;
  6. Select the branch containing the website (typically master), leave the build command blank and enter the directory containing the website (typically left blank for BitBucket and GitHub, and site for GitLab);
  7. Click deploy site.

If you go in to domain settings you can add a custom domain, Netlify will sort out auto renewing Let's encrypt certificates for you which is really handy!