Do this before you deploy to Vercel

Поделиться
HTML-код
  • Опубликовано: 16 сен 2024
  • Become a YT Members to get extra perks!
    www.youtube.co...
    My Products
    🏗️ WDC StarterKit: wdcstarterkit.com
    📖 ProjectPlannerAI: projectplanner...
    🤖 IconGeneratorAI: icongeneratora...
    Useful Links
    💬 Discord: / discord
    🔔 Newsletter: newsletter.web...
    📁 GitHub: github.com/web...
    📺 Twitch: / webdevcody
    🤖 Website: webdevcody.com
    🐦 Twitter: / webdevcody

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

  • @antidegenerates7449
    @antidegenerates7449 17 дней назад +73

    I love how Cody videos has zero editing, no making faces on camera, like bad actor, no silly mimics and tone. Just sharing knowledge, without even looking at camera. Just respect, mate

    • @antidegenerates7449
      @antidegenerates7449 17 дней назад +2

      No degen Fireship adhd cuts, whatsoever.

    • @100timezcooler
      @100timezcooler 16 дней назад +1

      bros locked tf in , i respect the candidness. Theres this other dude i watch that is literally playing tony hawk pro skater while hes dropping knowledge. xD

    • @ericka.montanez6821
      @ericka.montanez6821 14 дней назад +1

      In a world of fabricated tones and faces this is refreshing.

  • @omereker8824
    @omereker8824 17 дней назад +24

    This is better than most of the 'learn devops in 5 hours' videos. Your way of illustrating a 'complex' topic is phenomenal man, thanks!

  • @rodjenihm
    @rodjenihm 17 дней назад +78

    You forgot the pain of making database backups. And praying to God the file is not corrupted when you need to restore it.

    • @JagaSantagostino
      @JagaSantagostino 17 дней назад +13

      With today tools is literally 1 command to backup on s3 or similar bth

    • @antidegenerates7449
      @antidegenerates7449 17 дней назад +5

      Yeah, rookie will backup to s3, totally

    • @GreatTaiwan
      @GreatTaiwan 17 дней назад

      @@antidegenerates7449 so don't use a service but use this service .. huh ?

    • @JagaSantagostino
      @JagaSantagostino 16 дней назад

      @@antidegenerates7449 yes will do, takes little to learn and theres a ton of material, let’s stop pretending people starting out are stupid, they would not even understand how to open a terminal otherwise. If you can deploy to vercel you can also create a bucket and copy paste a script

    • @uchennaofoma4624
      @uchennaofoma4624 16 дней назад

      Managing down services and getting email notifications when they go down is also going to be another process to setup

  • @pepper_oni
    @pepper_oni 16 дней назад +3

    A little money-saver here: before diving into real-rented VPS, perhaps it would be better to try run virtual machine on your local PC (using VMWare, Virtual Box, etc), and test your stuff on it - take your time, but you'll get even much more insight on how things works (especially networking) in addition to what Cody says in this video (much appreciate his work), totally worth it ;)

  • @wasaabbi
    @wasaabbi 17 дней назад +11

    Honest, detailed, straight to the point - you're diamond among web/programming oriented creators. Hope that you'll keep doing what you doing and this channel will fly to 1mil subs.

  • @SaifurRahmanAkash
    @SaifurRahmanAkash 17 дней назад +9

    wtf! Have I just done a DevOps crash course or what?
    Somehow I'm super excited

    • @WebDevCody
      @WebDevCody  17 дней назад +4

      You’re now a devops engineer, welcome to

  • @JoeBuza
    @JoeBuza 3 дня назад

    This was phenomenal. I had knowledge of the individual components but never took time to put them together in a coherent manner. Great work

  • @AtizaJuanita
    @AtizaJuanita 8 дней назад +2

    Simply one of the best videos by one of the most underrated content creators!

  • @SeibertSwirl
    @SeibertSwirl 17 дней назад +24

    Good job babe!!! I would have been first but I went to bed at old lady hours yesterday and missed the early launch 😅

  • @oSpam
    @oSpam 18 дней назад +34

    Good job babe! 😉

    • @SeibertSwirl
      @SeibertSwirl 17 дней назад +15

      Hahaha good job babe you beat me to it!!!!

  • @billnye7328
    @billnye7328 16 дней назад +1

    This was amazing. Fastest 20 minutes of my life, and it was about dev ops

  • @hotdaq
    @hotdaq 16 дней назад +1

    I already know most of this, but after 9 minutes I have to say, your explanations are so damn good!

  • @TheKevinbigfoot
    @TheKevinbigfoot 17 дней назад +2

    I wish I had seen this video years ago. I had only ever used Vercel or Heroku until recently when I had to spin up a vps for a project. Had to go figure out all of this and it was not simple! Still learned a lot from this video that I will need to go add to that project. Thanks for the great content!

  • @caca738
    @caca738 16 дней назад

    Dude this is one of the most informative videos I’ve seen relating to devops and the importance of knowing what’s actually happening. I see myself rewatching this just to do some of this manually

  • @tsykin
    @tsykin 17 дней назад +1

    Thanks for visualizing and walking though the entire process, that's super valuable 👍

  • @axedotdev
    @axedotdev 17 дней назад +4

    I deploy next apps at work over AWS ECS (elastic container service) & ALB after containerising it. I had to turn off optimised images in next config as it was causing memory to creep up and also some adjustments in Dockerfile. Whole setup runs quite stable, i have also setup certain auto scaling policies for containers and custom cicd setup for it over github actions. I think this is the most scalable and stable approach without setting our own k8s cluster or depending on vercel.

    • @sarabwt
      @sarabwt 17 дней назад

      I haven't looked at vercel pricing, but there is almost no way that it is cheaper.

    • @WebDevCody
      @WebDevCody  17 дней назад

      ECS also works (fargate as well)

  • @TechnologicNick
    @TechnologicNick 17 дней назад +57

    "this video is for beginners"
    "learn vim"

    • @developer217
      @developer217 17 дней назад +6

      just use nano instead

    • @spirisera
      @spirisera 17 дней назад +1

      vim is the best tool I’ve ever learned as a dev. I started using it (in vscode) as an intern and it’s been amazing ever since. I can edit files at full speed in any machine, how perfect is that?

    • @Zoo-Wee-Mama-Sq
      @Zoo-Wee-Mama-Sq 17 дней назад

      ​@@spiriserabut then your full speed is capped by not using the full suite of features when on a full desktop

    • @hamm8934
      @hamm8934 17 дней назад

      @@Zoo-Wee-Mama-Sqlook into neovim. There isnt a single ide feature i dont have in my neovim config

    • @Andrew-yi6zz
      @Andrew-yi6zz 17 дней назад +1

      @@spirisera indeed it is! learning vim is the best skill investment I've done as a dev, personally couldn't recommend it more!

  • @zi_t
    @zi_t 16 дней назад

    unbelievable. i have no idea how you can teach so effectively. blows my mind every time. as usual: thank you!!

    • @WebDevCody
      @WebDevCody  16 дней назад

      me neither, I just yolo it

  • @jaymondal7775
    @jaymondal7775 17 дней назад +7

    next video suggestion - docker and Kubernetes

  • @rand0mtv660
    @rand0mtv660 17 дней назад +2

    I think it's quite important to have some knowledge and experience on how all this works in a more barebones scenario like a VPS. That way you just have more knowledge and see what those managed services actually offer you and what problems they solve. You might realize that for some application you do, you might not need a managed service at all.
    You also might end up working somewhere where things need to be deployed internally to some servers or to some existing VMs on AWS/Azure/GCP alongside other services. So having this knowledge can make you stand out actually.

  • @8andre3
    @8andre3 17 дней назад

    Reminded me of the "What does larger scale software development look like?" video. Your ability to diagram systems is really good, and it helps beginners a lot. Keep it up

  •  14 дней назад

    Now I know where to send everybody that asks me how to start learning devops ❤ You are a beast Cody!!

  • @0xbrandawn
    @0xbrandawn 16 дней назад

    Some of the most important content for new devs. Thanks for doing these

  • @elonmask4077
    @elonmask4077 17 дней назад

    never got this explanation so clearly when it comes to devops stuff as SWE. well delivered cody!!!

  • @okadz7037
    @okadz7037 17 дней назад +4

    You are legendary 👑

  • @tinrab
    @tinrab 17 дней назад +1

    This is important for learning how things work. There's a difference between indie hacking and getting skills that make you a better engineer.

  • @stevanfreeborn
    @stevanfreeborn 17 дней назад

    This was great man! So helpful to go through this process to demystify what platforms are actually doing for you.

  • @Steel0079
    @Steel0079 17 дней назад +1

    Bro, this is gold.

  • @pankajsharma9801
    @pankajsharma9801 16 дней назад

    I learned a lot today why we have different options to deploy and why different technologies exists what problems they solve very useful video thank you so much bro for sharing

  • @j.r.r.tolkien8724
    @j.r.r.tolkien8724 17 дней назад +1

    Very helpful. Everyone else assumes prior knowledge about this for some reason.

  • @stonedizzleful
    @stonedizzleful 16 дней назад

    This is so informative dude. Thank you!

  • @RyanTipps
    @RyanTipps 17 дней назад

    One of the most helpful dev videos ive seen. Thank you!

  • @aleksandrriazantsev5334
    @aleksandrriazantsev5334 17 дней назад

    I love it. Thank you so much!
    Currently getting through a course on AWS. Perfect timing.

  • @web3simplified793
    @web3simplified793 16 дней назад

    great vid you did a real good summary on this. funny enough theres not that many good youtubue tutorials litreally on this topic. i remember the first time i tried to deploy an api and host it from a digitial ocean server i spend about two days goo through the roots of learning about nginx and pm2 etc. and then about another couple of days how to set up access keys for integrating ci for autodeployment.
    custom deployment is not somthing thats talked about or covered a lot but definitely is soo worth the time learning how to deploy an application from scratch on a custom server. makes you apreciate things like vercel so much lol

  • @tech3425
    @tech3425 11 дней назад

    17:02 totally worth watching till this point. Seriously rofled😂

  • @nayandey5010
    @nayandey5010 17 дней назад +1

    i learned something today thank you
    keep making these

  • @techwithsoleyman
    @techwithsoleyman 7 дней назад

    Goated content

  • @GarthScaysbrook
    @GarthScaysbrook 13 дней назад

    so good :) This was the best explanation I have came across. Thank you

  • @r.k.vignesh7832
    @r.k.vignesh7832 17 дней назад

    This is a great topic to cover, thanks for making this walkthrough!!

  • @flamethrower883
    @flamethrower883 11 дней назад

    This is a gem

  • @akka3109
    @akka3109 16 дней назад

    This is gold
    Thank you sir

  • @salamandr4111
    @salamandr4111 16 дней назад

    This video is sooo goood HOLYY

  • @yaronyahav656
    @yaronyahav656 День назад

    this is incredible.

  • @notril5460
    @notril5460 17 дней назад

    Great video! thank you for doing it 😊

  • @dmytromarchenko4250
    @dmytromarchenko4250 17 дней назад +1

    My suggestion would be to learn some Cloud: Google Cloud/AWS/Azure. It has everything you might need (VPS/Serverless platforms/Managed databases/File storage/etc and without 10x price like in Vercel)

  • @thecoder1631
    @thecoder1631 14 дней назад

    devops added in my resume, thanks cody xD

  • @jazzdestructor
    @jazzdestructor 15 дней назад

    for anyone trying to learn basics the first steps suggested by Cody can be easily achievable locally like creating ssh keys etc (in a linux pc), and if you have a friend with linux pc then can do the remote tunneling as well (just remote into each other pc). PS thanks man need to start with setting up caddy etc need practical knowledge on this. If you and anyone else has any reference links then please send here. will reduce my googling time 🤣 cheers🍻

  • @oussama40612
    @oussama40612 17 дней назад

    Great points made, learned some stuff even as an experienced developer with DevOps experience

  • @HopeUnveiled
    @HopeUnveiled 17 дней назад

    That's a great informative video. Thank you

  • @TheRiddl37
    @TheRiddl37 15 дней назад

    Very cool video, very interesting stuff. I'm a long time software developer I feed like I am missing this knowledge. Make me want to take a deep course on this.

  • @lokuo5523
    @lokuo5523 17 дней назад +13

    TLDR: try to figure out these things on your own until you know the problem these services solve

    • @RaVq91
      @RaVq91 17 дней назад

      It will take whole months to learn how these things work

  • @dandogamer
    @dandogamer 17 дней назад

    Great video, agree with your points. Docker is definitely recommended to learn, it's great for dev environments

  • @rafachojnowski7549
    @rafachojnowski7549 16 дней назад

    That's a great video, thanks

  • @josepulgarin1359
    @josepulgarin1359 4 дня назад

    Great video!

  • @reqtified
    @reqtified 15 дней назад

    Cody, do you have a full tutorial of doing all this? I've deployed to VPS before, I've done everything before up to 11:30 in the video, but the CI, docker, virtual volume DB mounts would be amazing to watch and super helpful. Even if you have any paid tutorials on that part let me know. For my next app I'd love to go full VPS. :) Amazing as always dude.

  • @astronautonmars
    @astronautonmars 17 дней назад +1

    Vercel's moat basically!

  • @ziacodes
    @ziacodes 17 дней назад +1

    I believe that's devops

  • @AlexGarcia-ir7fl
    @AlexGarcia-ir7fl 17 дней назад +1

    Thank god I learned Go. Only drop my binary into the cloud provider UI.

  • @tmanley1985
    @tmanley1985 17 дней назад

    Great video! There's a book by Josef Strzibny called Deployment From Scratch that has a WEALTH of knowledge about well... deploying from scratch. It covers everything from ssh to networking, backups, linux administration, etc. and has solid examples. I don't know if he's done anything else honestly, I probably should check. But anyhoo, it's really well done.

  • @bstoynov
    @bstoynov 17 дней назад +29

    TLDR: Yolo deploy to Vercel

    • @Steel0079
      @Steel0079 17 дней назад +3

      Not really. If your application becomes huge as in terms of users, then you're basically stuck on that platform. Because of egress fees. Check egress fees for vercel and others. I probably will never have a huge app. But I still love to do all of the process and have own server at my home if possible. But this damn ISP won't open ports. Time to go research how to build my own ISP.

    • @PraiseYeezus
      @PraiseYeezus 17 дней назад +2

      @@Steel0079 huh? You can switch whenever you want, what does egress fees have to do with anything? It's not bucket storage...

    • @RobGeeDev
      @RobGeeDev 17 дней назад +2

      @@PraiseYeezus bro thinks he can switch whenever he wants oh boy

    • @PraiseYeezus
      @PraiseYeezus 17 дней назад +2

      @@RobGeeDev ^ here's another person that has apparently never used Vercel before

    • @RobGeeDev
      @RobGeeDev 17 дней назад

      @@PraiseYeezus I have clients on vercel, once they are on it, its way to assisted etc that is becomes an actual pain getting it working of other deployment sites... you clearly are inexperienced

  • @jaz6051
    @jaz6051 16 дней назад

    Awesome dude 😎

  • @giuliopimenoff
    @giuliopimenoff 17 дней назад

    super nice video honestly

  • @user-td5gy2fh3p
    @user-td5gy2fh3p 10 дней назад +1

    this video makes these things seem more complicated than what they actually are. these things are actually pretty simple if you have a solid computer science background.

    • @WebDevCody
      @WebDevCody  9 дней назад +2

      They didn’t teach any of this in computer science.

  • @ajzack983
    @ajzack983 17 дней назад +2

    never thought cody would recommend vim btw.

    • @WebDevCody
      @WebDevCody  17 дней назад

      I mean, I used vim all the time when i used to ssh into machine

  • @banxengineering
    @banxengineering День назад

    Sound advice 💪🏽 You can also practice on a Raspberry Pi.

  • @dddddeeeevvvvvv
    @dddddeeeevvvvvv 17 дней назад +1

    Really educational stuff. But this is exactly why we have AWS SERVICES

  • @andrewbyrd28
    @andrewbyrd28 17 дней назад

    Great video. I recently moved to Railway from Fly. Fly was great, but I really like Railway.

  • @danielmajer1648
    @danielmajer1648 17 дней назад +1

    I'm sad that you have mentioned nginx before apache. Apache is the goat.

  • @parkerrex
    @parkerrex 9 дней назад

    Would love to see an infra walk thru of scary story generator

  • @giuliopimenoff
    @giuliopimenoff 17 дней назад

    this has been the exact path of my discord bot deployment haha

  • @windows07
    @windows07 17 дней назад +2

    Do you plan on trying Laravel in the future and share the progress here, just like you did with GO? I think you will be impressed by the DX, I would suggest the TALL stack

  • @RealParadox85
    @RealParadox85 15 дней назад

    Good lord this is a lot of stuff to do. I hate DevOps but respect it lol

  • @Kodlak15
    @Kodlak15 17 дней назад

    Learn Nix and you can automate a lot of the work that is involved with setting up and managing a VPS. Only catch is you will spend at least as much time micromanaging your Nix configurations before you start becoming productive 😆 It is addicting if you are the type who gets a kick out of automating things though.

  • @0xAquaWolf
    @0xAquaWolf 17 дней назад

    this is facts, thank you for reminding why i use vercel, i learned most of these steps and realized that i want to ship projects not configure server, Web Dev Cody for president lol

  • @Oceanus169
    @Oceanus169 17 дней назад +1

    Will you do a Kotlin and Gradle project?

  • @julienv7031
    @julienv7031 10 дней назад

    Vim mention 😊 give you a like

  • @xoutaku7600
    @xoutaku7600 17 дней назад

    nice breakdown, did you notice how the pain started once you introduced docker into the stack ?

    • @WebDevCody
      @WebDevCody  17 дней назад +5

      docker actually reduces a lot of pain because I can just run an image on any machine that has the docker daemon.

  • @nobilissimum
    @nobilissimum 14 дней назад

    We can only have one private repository in the free version of Docker hub. Is it not a good idea to include Dockerfile and docker-compose in the codebase then git pull, docker build, and docker compose everytime?

  • @codewithmarcin
    @codewithmarcin 17 дней назад

    Ever considered making a full self-hosting Next.js 14 app course?

    • @WebDevCody
      @WebDevCody  17 дней назад

      I have a starter kit with walkthrough videos

  • @vinialves12362
    @vinialves12362 17 дней назад

    waiting someone to create a go-based nextjs

  • @funkdefied1
    @funkdefied1 17 дней назад

    Don’t forget writing a systemd file for your app!

    • @WebDevCody
      @WebDevCody  17 дней назад +1

      And we could package our own rpm and deploy to artifactory ;)

  • @pencilcheck
    @pencilcheck 17 дней назад

    Heroku and render all are good starting poiint

  • @whatthepeople
    @whatthepeople 17 дней назад +1

    What keyboard do you use? Nice sound.

  • @williamschaefermeyer7007
    @williamschaefermeyer7007 17 дней назад

    good vid

  • @patolorde
    @patolorde 17 дней назад

    Nice content

  • @justafreak15able
    @justafreak15able 17 дней назад

    Basically a long vercel/railway ad. 🤣🤣

    • @WebDevCody
      @WebDevCody  17 дней назад

      although... I didn't get paid.. =(

    • @justafreak15able
      @justafreak15able 17 дней назад

      @@WebDevCody If your gonna give them free promotion how will you get sponsored. 🤣🤧
      Hey not a bad thing but still, introducing Coolify would have been 'cooler'.
      I thought the ending was gonna be about coolify. 😄

  • @dandogamer
    @dandogamer 17 дней назад

    Would you be able to share how docker does updates with zero downtime?

  • @PRFKCT
    @PRFKCT 16 дней назад

    do i need new vps for every web app? and is there any book or video do you recommend to learn this?

  • @antonpetrov145
    @antonpetrov145 17 дней назад

    What do you think of docker and blue/green deployments - will it be good for using with vps? Awesome video btw

    • @WebDevCody
      @WebDevCody  17 дней назад

      I think you could do it, just deploy two different services, api-blue api-green, each pointing to different versions of your api image. Then in your load balancer reconfigure it to switch to use a different color when you want. But at that point maybe checkout docker swarm or K8S because it has that type of stuff built in already

  • @enzodossantos2546
    @enzodossantos2546 17 дней назад

    This video was one of the greatest I've ever seen. I've a question, what you think about the replicas: flag on docker compose? It's that useful?
    Sorry if a make a mistake, english isn't my first language :).

    • @WebDevCody
      @WebDevCody  16 дней назад +1

      I'd have to look into it, but it sounds like it spins up multiple instances of your service and probably appends an index number to the name. Then your nginx could loadbalance between then?

  • @ryan_t_brown
    @ryan_t_brown 17 дней назад

    lol this is so good

  • @JimmayVV
    @JimmayVV 17 дней назад

    how many developer jobs out there actually need to know this kind of stuff? What percentage? I feel like many/most jobs should have a dev ops team or person who masters all of this, thus allowing the developers to develop.
    If you have no interest in being dev ops, what does this gain you other than your respect for their jobs?
    Honest question.

    • @WebDevCody
      @WebDevCody  17 дней назад

      mainly the larger ones, the ones all in on aws, the ones with lots of scale. Most saas products just deploy to a PaaS and call it a day

    • @doc8527
      @doc8527 17 дней назад

      @@WebDevCody Honest answer, in the past all of these thing didn't strictly belongs so called dev ops, it's part of the thing you might need to learn and do somehow through your job as a software developer.
      It's just nowadays with all kinds of cloud platforms and the new generations completely lost the ability and interests to know them and try hard to isolate everything into so called frontend/backend/dev-op or whatever the new title.
      At the end, treat yourself as a software dev and do whatever you need to do, forget the concept of frontend/backend.

    • @rodjenihm
      @rodjenihm 17 дней назад

      You should not need DevOps for simpler things. It's like saying you need FE specialist for basic landing page. Or BE specialist for basic CRUD functionality. There is time and place for specialists but more often than not you should be able to handle junior level task across the stack. Especially nowadays with AI tools and all the knowledge available online.

  • @thepassionatecoder5404
    @thepassionatecoder5404 9 дней назад

    Setting upl load balancer with multiple servers are costly though for beginners especially learners from 3rd world countries. Unfortunate :(

  • @nwsome
    @nwsome 3 дня назад

    1:47 I'd say there's no reason to "have a decent amount of cores and memory" for learning ssh and server configuration

    • @WebDevCody
      @WebDevCody  3 дня назад +1

      The reason I say that is because if you get a 512mb machine, it’s often pretty slow.

    • @nwsome
      @nwsome 3 дня назад

      @@WebDevCody That wasn't my initial experience with ec2 micro.
      But I've been used to using crappy hardware back than, so my standards might have been pretty low)

  • @birch-js9oi
    @birch-js9oi 15 дней назад

    how about coolify

  • @jenny2814.
    @jenny2814. 17 дней назад +1

    step 1. don't deploy to vercel

  • @quasa0
    @quasa0 14 дней назад

    Step 1: rent a hetzner for super cheap lol

  • @100timezcooler
    @100timezcooler 17 дней назад

    You could do this for free on the the aws free tier, you dont need RDMS you can just run ur db on the same t2-micro via containerization like u mentioned. But then theres the overhead of learning how tf to use the dogshit aws ui

  • @eleah2665
    @eleah2665 17 дней назад

    can you get an ngrok account and do this from home?

  • @exkris
    @exkris 16 дней назад

    How does DDoS protection fit into this?

    • @WebDevCody
      @WebDevCody  16 дней назад +1

      point your domain to cloudflare and have cloudflare route traffic to your service. for best protection your service should only allow traffic from a cloudflare tunnel instance and you should deploy a cloudflared image on your vps as well, only let the tunnel access your services.