Do this before you deploy to Vercel

Поділитися
Вставка
  • Опубліковано 27 лис 2024

КОМЕНТАРІ • 170

  • @antidegenerates7449
    @antidegenerates7449 2 місяці тому +92

    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 2 місяці тому +3

      No degen Fireship adhd cuts, whatsoever.

    • @100timezcooler
      @100timezcooler 2 місяці тому +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 2 місяці тому +1

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

  • @omereker8824
    @omereker8824 2 місяці тому +36

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

  • @pepper_oni
    @pepper_oni 2 місяці тому +6

    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 2 місяці тому +12

    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.

  • @zi_t
    @zi_t 2 місяці тому +2

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

    • @WebDevCody
      @WebDevCody  2 місяці тому

      me neither, I just yolo it

  • @billnye7328
    @billnye7328 2 місяці тому +2

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

  • @AtizaJuanita
    @AtizaJuanita 2 місяці тому +2

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

  • @JoeBuza
    @JoeBuza 2 місяці тому

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

  • @TheKevinbigfoot
    @TheKevinbigfoot 2 місяці тому +3

    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!

  • @RyanTipps
    @RyanTipps 2 місяці тому +1

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

  • @mateusztylec215
    @mateusztylec215 2 місяці тому

    This is exactly the path I went through. I'm currently working as a DevOps in a 9-5 job, dealing with all sorts of tasks. But when I work on personal projects, I just deploy on Railway (thanks for the recommendation, love it!) and focus on what brings value, not on the background stuff users don't care about.

  • @rodjenihm
    @rodjenihm 2 місяці тому +88

    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 2 місяці тому +13

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

    • @antidegenerates7449
      @antidegenerates7449 2 місяці тому +6

      Yeah, rookie will backup to s3, totally

    • @GreatTaiwan
      @GreatTaiwan 2 місяці тому

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

    • @JagaSantagostino
      @JagaSantagostino 2 місяці тому

      @@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 2 місяці тому

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

  • @LAFLAME1111
    @LAFLAME1111 2 місяці тому

    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 2 місяці тому +1

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

  • @axedotdev
    @axedotdev 2 місяці тому +6

    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 2 місяці тому

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

    • @WebDevCody
      @WebDevCody  2 місяці тому

      ECS also works (fargate as well)

  • @0xbrandawn
    @0xbrandawn 2 місяці тому

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

  • @hotdaq
    @hotdaq 2 місяці тому +1

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

  • @SaifurRahmanAkash
    @SaifurRahmanAkash 2 місяці тому +10

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

    • @WebDevCody
      @WebDevCody  2 місяці тому +4

      You’re now a devops engineer, welcome to

  • @elonmask4077
    @elonmask4077 2 місяці тому

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

  •  2 місяці тому

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

  • @stevanfreeborn
    @stevanfreeborn 2 місяці тому

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

  • @r.k.vignesh7832
    @r.k.vignesh7832 2 місяці тому

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

  • @jazzdestructor
    @jazzdestructor 2 місяці тому +1

    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🍻

  • @8andre3
    @8andre3 2 місяці тому

    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

  • @techwithsoleyman
    @techwithsoleyman 2 місяці тому

    Goated content

  • @stonedizzleful
    @stonedizzleful 2 місяці тому

    This is so informative dude. Thank you!

  • @nayandey5010
    @nayandey5010 2 місяці тому +1

    i learned something today thank you
    keep making these

  • @xaanders
    @xaanders 2 місяці тому

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

  • @GarthScaysbrook
    @GarthScaysbrook 2 місяці тому

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

  • @SeibertSwirl
    @SeibertSwirl 2 місяці тому +25

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

  • @jaymondal7775
    @jaymondal7775 2 місяці тому +7

    next video suggestion - docker and Kubernetes

  • @oussama40612
    @oussama40612 2 місяці тому

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

  • @pankajsharma9801
    @pankajsharma9801 2 місяці тому

    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

  • @web3simplified793
    @web3simplified793 2 місяці тому

    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

  • @rand0mtv660
    @rand0mtv660 2 місяці тому +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.

  • @Steel0079
    @Steel0079 2 місяці тому +1

    Bro, this is gold.

  • @notril5460
    @notril5460 2 місяці тому

    Great video! thank you for doing it 😊

  • @okadz7037
    @okadz7037 2 місяці тому +4

    You are legendary 👑

  • @dandogamer
    @dandogamer 2 місяці тому

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

  • @oSpam
    @oSpam 2 місяці тому +34

    Good job babe! 😉

    • @SeibertSwirl
      @SeibertSwirl 2 місяці тому +15

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

  • @HopeUnveiled
    @HopeUnveiled 2 місяці тому

    That's a great informative video. Thank you

  • @j.r.r.tolkien8724
    @j.r.r.tolkien8724 2 місяці тому +1

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

  • @akka3109
    @akka3109 2 місяці тому

    This is gold
    Thank you sir

  • @tinrab
    @tinrab 2 місяці тому +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.

  • @thecoder1631
    @thecoder1631 2 місяці тому

    devops added in my resume, thanks cody xD

  • @salamandr4111
    @salamandr4111 2 місяці тому

    This video is sooo goood HOLYY

  • @tech3425
    @tech3425 2 місяці тому

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

  • @johan2895
    @johan2895 Місяць тому

    The vast majority of the video had me like: ok seems doable to holy crap that’s a lot more stuff I need to learn about dev and deployment then back to oh thank God there are automated tools for deployment like vercel/railway 😂😂😂 needless to say I will be looking into this all. Great informative video and illustrations. Very easy to follow and understand the overall processes from start to finish.

  • @flamethrower883
    @flamethrower883 2 місяці тому

    This is a gem

  • @AlexGarcia-ir7fl
    @AlexGarcia-ir7fl 2 місяці тому +1

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

  • @rafachojnowski7549
    @rafachojnowski7549 2 місяці тому

    That's a great video, thanks

  • @andrewbyrd28
    @andrewbyrd28 2 місяці тому

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

  • @dmytromarchenko4250
    @dmytromarchenko4250 2 місяці тому +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)

  • @TheRiddl37
    @TheRiddl37 2 місяці тому

    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.

  • @0xAquaWolf
    @0xAquaWolf 2 місяці тому

    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

  • @yaronyahav656
    @yaronyahav656 2 місяці тому

    this is incredible.

  • @banxengineering
    @banxengineering 2 місяці тому

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

  • @marybeansie6367
    @marybeansie6367 2 місяці тому

    Wish I learned web dev from you from the beginning.

  • @giuliopimenoff
    @giuliopimenoff 2 місяці тому

    super nice video honestly

  • @tmanley1985
    @tmanley1985 2 місяці тому

    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.

  • @astronautonmars
    @astronautonmars 2 місяці тому +1

    Vercel's moat basically!

  • @Kodlak15
    @Kodlak15 2 місяці тому

    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.

  • @reqtified
    @reqtified 2 місяці тому

    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.

  • @Mathes881
    @Mathes881 2 місяці тому

    great video!

  • @RealParadox85
    @RealParadox85 2 місяці тому

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

  • @dddddeeeevvvvvv
    @dddddeeeevvvvvv 2 місяці тому +1

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

  • @jaz6051
    @jaz6051 2 місяці тому

    Awesome dude 😎

  • @windows07
    @windows07 2 місяці тому +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

  • @enzodossantos2546
    @enzodossantos2546 2 місяці тому

    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  2 місяці тому +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?

  • @ajzack983
    @ajzack983 2 місяці тому +2

    never thought cody would recommend vim btw.

    • @WebDevCody
      @WebDevCody  2 місяці тому

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

  • @ziacodes
    @ziacodes 2 місяці тому +1

    I believe that's devops

  • @danielmajer1648
    @danielmajer1648 2 місяці тому +1

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

  • @TechnologicNick
    @TechnologicNick 2 місяці тому +59

    "this video is for beginners"
    "learn vim"

    • @developer217
      @developer217 2 місяці тому +6

      just use nano instead

    • @spirisera
      @spirisera 2 місяці тому +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 2 місяці тому

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

    • @hamm8934
      @hamm8934 2 місяці тому

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

    • @Andrew-yi6zz
      @Andrew-yi6zz 2 місяці тому +1

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

  • @parkerrex
    @parkerrex 2 місяці тому

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

  • @k00k
    @k00k 2 місяці тому

    As a senior devops engineer that's been doing this stuff for 30+ years, I've had enough. I'm tired of K8s, terraform, cloudformation, etc. I just want to push my projects to git and have it all work and scale. We are finally there (for the most part) with serverless and the PaaS that are available. I'm willing to give up a bit of control and spend a little more for the fact that I can deploy value more quickly with less friction. I'd much rather spend my time alt-tabbing and watching your videos while Cursor is coding my site based on my big ideas than writing tons of infrastructure as code. Granted, there are many cases (especially enterprise) where this isn't feasible, but for 99% of the people watching these videos, it is.

    • @WebDevCody
      @WebDevCody  2 місяці тому

      you're a smart man

    • @k00k
      @k00k 2 місяці тому

      @@WebDevCody You know what they say, lazy people make the best engineers. The reality is just lazy for tedious stuff, will work 20hrs a day for creativity and results.

  • @whatthepeople
    @whatthepeople 2 місяці тому +1

    What keyboard do you use? Nice sound.

  • @pencilcheck
    @pencilcheck 2 місяці тому

    Heroku and render all are good starting poiint

  • @giuliopimenoff
    @giuliopimenoff 2 місяці тому

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

  • @Oceanus169
    @Oceanus169 2 місяці тому +1

    Will you do a Kotlin and Gradle project?

  • @julienv7031
    @julienv7031 2 місяці тому

    Vim mention 😊 give you a like

  • @prfkct
    @prfkct 2 місяці тому

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

  • @nobilissimum
    @nobilissimum 2 місяці тому

    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?

  • @dandogamer
    @dandogamer 2 місяці тому

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

  • @vinialves12362
    @vinialves12362 2 місяці тому

    waiting someone to create a go-based nextjs

  • @antonpetrov145
    @antonpetrov145 2 місяці тому

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

    • @WebDevCody
      @WebDevCody  2 місяці тому

      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

  • @funkdefied1
    @funkdefied1 2 місяці тому

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

    • @WebDevCody
      @WebDevCody  2 місяці тому +1

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

  • @codewithmarcin
    @codewithmarcin 2 місяці тому

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

    • @WebDevCody
      @WebDevCody  2 місяці тому

      I have a starter kit with walkthrough videos

  • @bogdanfilimon2486
    @bogdanfilimon2486 2 місяці тому

    What keyboard do you have?

  • @xoutaku7600
    @xoutaku7600 2 місяці тому

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

    • @WebDevCody
      @WebDevCody  2 місяці тому +5

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

  • @patolorde
    @patolorde 2 місяці тому

    Nice content

  • @justafreak15able
    @justafreak15able 2 місяці тому

    Basically a long vercel/railway ad. 🤣🤣

    • @WebDevCody
      @WebDevCody  2 місяці тому

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

    • @justafreak15able
      @justafreak15able 2 місяці тому

      @@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. 😄

  • @bstoynov
    @bstoynov 2 місяці тому +29

    TLDR: Yolo deploy to Vercel

    • @Steel0079
      @Steel0079 2 місяці тому +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 2 місяці тому +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 2 місяці тому +2

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

    • @PraiseYeezus
      @PraiseYeezus 2 місяці тому +2

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

    • @RobGeeDev
      @RobGeeDev 2 місяці тому

      @@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

  • @williamschaefermeyer7007
    @williamschaefermeyer7007 2 місяці тому

    good vid

  • @birch-js9oi
    @birch-js9oi 2 місяці тому +1

    how about coolify

  • @user-td5gy2fh3p
    @user-td5gy2fh3p 2 місяці тому +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  2 місяці тому +2

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

  • @eleah2665
    @eleah2665 2 місяці тому +1

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

  • @exkris
    @exkris 2 місяці тому

    How does DDoS protection fit into this?

    • @WebDevCody
      @WebDevCody  2 місяці тому +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.

  • @thepassionatecoder5404
    @thepassionatecoder5404 2 місяці тому

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

  • @nwsome
    @nwsome 2 місяці тому

    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  2 місяці тому +1

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

    • @nwsome
      @nwsome 2 місяці тому

      @@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)

  • @jenny2814.
    @jenny2814. 2 місяці тому +1

    step 1. don't deploy to vercel