- value:'Static websites are easy to host and deploy'
created:
- value:'2025-03-13T00:00:00+00:00'
changed:
- value:'2025-05-11T09:00:00+00:00'
promote:
- value:false
sticky:
- value:false
default_langcode:
- value:true
revision_translation_affected:
- value:true
path:
- alias:/daily/2025/03/13/deploy
langcode:en
body:
- value:|
<p>Another reason I like static websites is that they're easy and quick to deploy.</p>
<p>Whether you use write each HTML file by hand or <a href="/daily/2025/03/12/easy">use a static site generator</a>, a simple Web server like Caddy, Nginx or Apache can load and serve your website for everyone to see.</p>
<p>My Sculpin website generates an output_prod directory after I run <code>sculpin generate</code> with my deployable files.</p>
<p>I manage my own server with NixOS that hosts a number of static websites, such as examples from talks and blog posts.</p>
<p>To upload my files onto the server, I just use rsync - a small command line tool to synchronise files between computers.</p>
<p>It's a single command to upload the contents of my output_prod directory to the directory on my server.</p>
<p>No complex CI pipelines or database migrations.</p>
<p>It's fast, simple and minimal.</p>
<p>If you prefer to use a service like Netlify or Vercel, they work great for static websites too.</p>
format:full_html
processed:|
<p>Another reason I like static websites is that they're easy and quick to deploy.</p>
<p>Whether you use write each HTML file by hand or <a href="/daily/2025/03/12/easy">use a static site generator</a>, a simple Web server like Caddy, Nginx or Apache can load and serve your website for everyone to see.</p>