Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Minimalist website deployment strategy for 2022

Minimalist website deployment strategy for 2022

This short document gives suggestions for how to deploy websites in 2022 without any more expenses or work than is necessary. After getting accustomed to the right tools, it should be able to set up a fast and secure hosted website in about 30 minutes while only paying the cost of the domain name.

Domain names and DNS

Cloudflare offers low/no markup domain name registration with a free DNS service. This will virtually always be your cheapest option for domain name renewals. They don't list prices for all TLDs upfront, so use this list to get your best estimate.

Notes:

Hosting

There are a wide number of hosting services you can use which really depends on your requirements, mainly:

  1. Can you get by with a static site, or do you require server-side rendering?
  2. How much bandwidth will you use?
  3. How much storage space will you use?

There are a variety of options you can choose for low-cost sites. Below are a few of the best:

  • If you just need a simple static website, consider Netlify.
    • Free for unlimited sites
    • Deploy via web interface, GitHub integration, or command-line tools
    • 100GB/month free bandwidth
  • If you use GitHub and need to host a static website, consider GitHub Pages.
    • Free for one site
    • Stored on a GitHub public respository
    • Deploy via web interface, or Git
    • 100GB/month free bandwidth
  • If you need to run a website with a server-side backend, consider Heroku.
    • Free for unlimited sites
    • Node.js, Go, Python, Ruby, Java, PHP, Scala, Clojure
    • One free dyno with 512 MB RAM and ~1.0Ghz CPU
    • Deploy using command-line tools (requires Git)
    • 100GB/month free bandwidth

All these options allow you to connect to custom domains and at least 1GB of storage. None of them require a credit card to get started. The easiest option for a static site is definitely Netlify, which even has a drag-and-drop interface for uploading files. However I included GitHub Pages since the ubiquity of GitHub among programmers makes it a very convenient option.

Note: None of these options allow you to access a server directly with SSH or FTP they way that you would with a a traditional web host. They are "serverless."

Also, if you're using Cloudflare's free CDN service as mentioned above, the traffic that your host sees could greatly be decreased due to caching, effectively giving you up to ten times more traffic while and staying within the free range.

Email

If you need simple email forwarding for your domain, you can use ImprovMX.

  • Free for one domain
  • Unlimited forwarding and addresses
  • Attachments up to 10MB

If you're looking for hosted email for your domain, you can use Zoho Mail.

  • Free for one domain
  • Up to five email accounts with 5GB storage each
  • Attachments up 25MB
@ethaningraphics
Copy link

ethaningraphics commented May 16, 2022

It's really detailed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment