The Best Way to Deploy Your Static Website

preview_player
Показать описание

Follow me:

Support the channel:

Music:
Jalowo – Luminism (ft. Yonderling)
Liquify – Afternoon

Videos are edited with Davinci Resolve Studio. I use Affinity Photo for thumbnails and Ableton Live for audio editing.

Video gear:

Other stuff that I use:

As an Amazon Associate, I earn from qualifying purchases

Timestamps:
00:00 Introduction
02:16 Tutorial
09:02 Outro
Рекомендации по теме
Комментарии
Автор

I appreciate how you obtain the host certificate rather than merely using the SSH flag to bypass the verification. However, I strongly encourage people to employ host validation, as in our CI/CD environment, hijacking DNS can become an attack vector for stealing code. While this may not have a significant impact in your situation, others might execute SSH commands containing tokens, passwords, or similar sensitive information.

rwz
Автор

Cool explainer. Will create squarespace page instead

jt_hopp
Автор

It's pronounced "Engine X".
You made a very nice pipeline - good job!
If you can do this you are gonna rock Pantheon and Acquia platforms.

earlyburg
Автор

Came for static site generating tips and tricks by others

Stayed for the fantastic surprise Github Actions tutorial

uuu
Автор

I would be really interested in a similar process using a self-hostable CI/CD system, like Jenkins or TeamCity.

code
Автор

Why use a server when there is cloudflare pages with automatic deployments?

DanyTPG
Автор

You should do a video on remote software. I'm away from home now alot and I need to access my home PC so I went down a kvm rabbit hole and I think it would be great content for your channel.

danielisaac
Автор

Awesome, interesting approach. If I had to host a website, I'd probably do it with containers. :P Build the container, push it and pull it back down, replacing the old one.

LampJustin
Автор

Is there a reason one would want to host on their server (/var/www) vs in a docker container on the same server? Would this mean that you are limited to self hosting one website and cant host multiple static sites?

Love your videos btw. Amazing work. Great content, editing, knowledge sharing, etc. Keep it up!

blazenetwork
Автор

I just git push to my archive server and then there's a git hook that pushes in cascade to my web server. The git hook on the web server does a rm -rf of the root of the site and then runs the static site generator locally to generate the new version. No need to restart anything on the web server. Of course this is through wireguard and the ssh key is on a nitrokey where secrets are truly safe unlike on a micro$oft server.

KnutBluetooth
Автор

It's pronounced as 'Engine X'. Nice tutorial btw

AbhishekBM
Автор

Nice video Wolfgang! Which font is that again in your terminal? It looks awesome!!

quickbrowndoglazyfox
Автор

for someone learnin CLI it would be sweet if there was a little text in the video explaining what things like -f and -G stand for.
Also, shouldnt it been www/data at 4:17 ?

aliasname
Автор

I’d argue your still doing it wrong.

AWS ACM handles certificates for me, set to auto-renew. Don’t need to think about anything.

My website is deployed via s3 bucket with a github pipeline which is updated from my local machine. I just merge my updates in VSCodium and the pipeline picks it up and replicates it to the live website.

CDN is leveraged through cloudfront which is also super simple. It also handles all the proper TLS headers, CSP, and other security related headers for me. Nginx needs manual config for that.

Costs me like $6/mo for my website on AWS and it’s literally one button click once I update something on it.

tcasex
Автор

Hey! Another great vid but one thing I noticed for people following along is that running 'rsync -avx --delete public/ ' resulted in the .ssh repository being deleted also, this meant that should you carry out another git push the workflow would fail. To get around this I had to make an amendment to the rsync command to " --exclude '.ssh' " and it seems to be working perfectly afterwards. It's just something I thought would point out in the event others had a similar problem following along!

Kierstro_
Автор

"UNTIL NOW, THIS WAS THE ONLY WAY TO GET JUICE FROM AN ORANGE"

JemaKnight
Автор

So, you're telling me deploying to a production-grade Google Cloud Kubernetes cluster with 10 nodes is excessive?

maxnatamo
Автор

Running keyscan in a pipeline defeats the purpose. Commit known_hosts or even better add it to secrets

LA-MJ
Автор

i use an open source tool named Coolify, didn't had too much problem with it.

bonk
Автор

If you think about it, it is really funny how there is no CMS/GUI for SSGs that aren't a hack like making Ghost be headless and so on.

enkiimuto