The Best Way to Deploy Your Static Website

Поделиться
HTML-код
  • Опубликовано: 4 янв 2025

Комментарии • 82

  • @WolfgangsChannel
    @WolfgangsChannel  Год назад +10

    Github Actions Template gist.github.com/notthebee/2e918b62a26f1c1f22dd38baa9b6afc5
    Zola getzola.org
    My website repo github.com/notthebee/notthebe.ee

  • @rwz
    @rwz Год назад +45

    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.

  • @earlyburg
    @earlyburg Год назад +51

    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.

  • @jt_hopp
    @jt_hopp Год назад +47

    Cool explainer. Will create squarespace page instead

  • @uuu12343
    @uuu12343 Год назад +5

    Came for static site generating tips and tricks by others
    Stayed for the fantastic surprise Github Actions tutorial

  • @code8986
    @code8986 Год назад +8

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

  • @DanyTPG
    @DanyTPG Год назад +10

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

  • @aliasname5518
    @aliasname5518 Год назад +3

    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 ?

    • @livtown
      @livtown Год назад

      i don't know for other distros, but i'm debian it's www-data.
      a command usually has a man page, try this example: "man apt" (if using apt, i assumed since you're new to cli)

    • @recklessroges
      @recklessroges Год назад

      That's what `man useradd` is for. #teachAmanToFish

    • @livtown
      @livtown Год назад

      ok

  • @LampJustin
    @LampJustin Год назад +1

    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.

  • @danielisaac7586
    @danielisaac7586 Год назад +2

    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.

  • @KnutBluetooth
    @KnutBluetooth Год назад +1

    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.

  • @blazenetwork242
    @blazenetwork242 8 месяцев назад

    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!

  • @JemaKnight
    @JemaKnight Год назад

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

  • @GustavAgar
    @GustavAgar Год назад

    What is the font family of your console? Looks so cool

    • @Checker8763
      @Checker8763 8 месяцев назад +1

      Comic Code, as he pointed out in another comment.

    • @GustavAgar
      @GustavAgar 8 месяцев назад

      @@Checker8763 thanks for replying n_n

  • @quickbrowndoglazyfox
    @quickbrowndoglazyfox Год назад +2

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

  • @mrfoodarama
    @mrfoodarama Год назад

    Sweet, was just looking into this!

  • @maxnatamo
    @maxnatamo Год назад +2

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

  • @a.g8517
    @a.g8517 Год назад

    can you tell me about Crypto like iam 5? what is pros & cons. How to use it?

  • @chrisguy97
    @chrisguy97 Год назад

    What do you think about the new framework laptops and the brand in general?

    • @WolfgangsChannel
      @WolfgangsChannel  Год назад

      I really like what Framework folks are doing. Don't personally need a Windows laptop myself, but the idea of a laptop with a removable dGPU is honestly genius

  • @CarAudioInc
    @CarAudioInc Год назад

    I do everything wrong, take that! Love the vids.

  • @adrianhermozabayona9888
    @adrianhermozabayona9888 Год назад

    Man you are awesome!!

  • @Mitsunee_
    @Mitsunee_ Год назад

    the environment I get with ssh on my hoster is very limited and I don't think rsync actually works. I've tried 3rd party github actions for sftp previously, but those didn't work either, one of them was actually using git clone on the deployment machine, which I very much doubt is possible under any ftp protocoll. Any other static sites would probably use vercel or github pages anyways, so I don't really need to worry about deployment pipelines there either, kind of a shame really.

    • @WolfgangsChannel
      @WolfgangsChannel  Год назад

      I used to `rm -rf` the public folder and just copy all the files from scratch using sftp, back when I was experimenting with chroots. Maybe that could be an option?

  • @AbhishekBM
    @AbhishekBM Год назад +8

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

  • @enkiimuto1041
    @enkiimuto1041 Год назад

    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.

  • @Slate245Ivanovo
    @Slate245Ivanovo Год назад

    Sooooo we know what's coming, right? Next tutorial on how to set up ci/cd without gh when?

  • @sharma_harsh
    @sharma_harsh Год назад

    Better would have a Raspberry Pi server running in my backyard and copy paste files there via mounted storage 🤣

  • @LA-MJ
    @LA-MJ Год назад +4

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

    • @recklessroges
      @recklessroges Год назад

      Correct. Bypassing security is the wrong methodology. #WCPGW

  • @moistness482
    @moistness482 Год назад +1

    Bro shocked me when he said he was on Debian. It looks so much like a mac.

    • @-aexc-
      @-aexc- Год назад

      sshd into debian from Macbook

    • @moistness482
      @moistness482 Год назад

      @@-aexc- ah, of course, thank you for pointing out

  • @bonk1463
    @bonk1463 Год назад

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

  • @r0galik
    @r0galik Год назад

    I thought I was the only one who pronounces "nginx" this way

  • @c1dk1n
    @c1dk1n 10 месяцев назад

    You can just use git on your remote, and use a hook **wipes hands clean**

  • @zimbu_
    @zimbu_ Год назад

    It's not "dot ee ee", it's "dot eeeeeee". At least that's what I choose to believe.

  • @ThePowerRanger
    @ThePowerRanger Год назад

    What am I doing right?

  • @gearboxworks
    @gearboxworks Год назад

    First time I have ever heard it pronounced "N-Jinx". 😁

  • @ThePreparedMuslim
    @ThePreparedMuslim Год назад +2

    Listens to tutorial.
    Just uses Square Space anyways.

  • @mrsansiverius2083
    @mrsansiverius2083 Год назад +2

    I already set up my website with Hugo and Infinity free, but this might be useful in the future.
    Can you also make a general video on SEO?

  • @maceall8106
    @maceall8106 Год назад

    Please tell me what you use to work in nvim as an IDE?

  • @LARKXHIN
    @LARKXHIN Год назад

    and here I am been hosting it on Azure like a dumbass.

    • @willi1978
      @willi1978 Год назад

      azure datalake? when i read the title of the video i thought it would be hosted there. create a storage account and upload files

  • @MrTatooland
    @MrTatooland 11 месяцев назад

    This font burns my eyes…

  • @miriam-english
    @miriam-english Год назад

    I really enjoy your videos, but I don't understand why this one is so complicated. For my website I just create my pages in a local directory tree structure on my computer using a text editor (leafpad or Geany) and upload the pages to my website via ftp. Easy.
    I use minimal HTML deliberately, so my pages load instantly on any computer no matter how old, even on very slow internet services, and the pages adapt automatically to whatever display is being used (as HTML was originally intended to do).

    • @WolfgangsChannel
      @WolfgangsChannel  Год назад +1

      To each their own :) There are some people in the comments who found that this setup is actually not complicated enough.
      For me, it's fairly simple and still provides some creature comforts over plain HTML.
      I use a static website generator because Markdown is way eaiser to write than plain HTML, and because taking care of my blog articles manually is too much effort.
      I also use some CSS, because even though HTML was originally intended to adapt to all the different displays, it also wasn't really created with widescreen, ultrawide or even big displays in mind. So unless you at least limit the width of your pages, your website is going to be unreadable on some displays.
      Using a static website generator also means that I just get plain HTML and CSS at the end, which is lean, and should look good on pretty much all browsers and displays.
      As for the deployment - FTP is fine as long as you don't update your website very often. However, manually copying all your files via FTP every time you want to make a change can get tiring if you update your site often.

  • @heliophane
    @heliophane Год назад +3

    Good video. Debate Vaush.

  • @ernstmayer3868
    @ernstmayer3868 Год назад +1

    Sorry, it is definetly NOT the best way to hand over your ssh key to github.

  • @stewiegriffin6503
    @stewiegriffin6503 Год назад

    buuh

  • @anonymuzz5102
    @anonymuzz5102 Год назад +2

    Lol are you kidding me, use railway and do 1) generate 2) railway up ... this "simple" deployment is very cringe Mr Wolfgang