To host your site just copy everything from the site directory (not the stage directory) to the server on which you would like to host it.
For creating static websites on code collaboration sites offering repository management like Amazon CodeCommit, BitBucket, GitHub and GitLab you can import/fork, rename and clone a site repository template and work from that (use
Note - You can rename a repository when importing it, rather than forking and renaming, plus on BitBucket and GitHub you cannot remove fork relationships. Also on GitHub you will need to go in to the site repository's settings, find the GitHub Pages section and set the
You can also combine any of the above hosting options with Netlify, which works well for custom domains (including subdomains) and automatically renews Let's Encrypt certificates for your site. Netlify also has built in form handling and a full suite of authentication functionality backed by the GoTrue API. For these reasons we recommend Netlify for hosting JAMstack websites.
Other good free hosting options for static sites include:
Also check out Aerobatic.
If you would like to be a masochist and set up your own site repositories from scratch for any of BitBucket, GitHub or GitLab then see:
To host dynamic websites for free check out Heroku. Other options for hosting dynamic websites (or static sites if you would like) include hiring a server with someone like: