Do this before you deploy to Vercel

  Рет қаралды 31,212

Web Dev Cody

Web Dev Cody

Күн бұрын

Пікірлер: 170
@omereker8824
@omereker8824 3 ай бұрын
This is better than most of the 'learn devops in 5 hours' videos. Your way of illustrating a 'complex' topic is phenomenal man, thanks!
@antidegenerates7449
@antidegenerates7449 3 ай бұрын
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 3 ай бұрын
No degen Fireship adhd cuts, whatsoever.
@100timezcooler
@100timezcooler 3 ай бұрын
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 3 ай бұрын
In a world of fabricated tones and faces this is refreshing.
@pepper_oni
@pepper_oni 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 3 ай бұрын
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.
@billnye7328
@billnye7328 3 ай бұрын
This was amazing. Fastest 20 minutes of my life, and it was about dev ops
@zi_t
@zi_t 3 ай бұрын
unbelievable. i have no idea how you can teach so effectively. blows my mind every time. as usual: thank you!!
@WebDevCody
@WebDevCody 3 ай бұрын
me neither, I just yolo it
@AtizaJuanita
@AtizaJuanita 3 ай бұрын
Simply one of the best videos by one of the most underrated content creators!
@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
@RyanTipps
@RyanTipps 3 ай бұрын
One of the most helpful dev videos ive seen. Thank you!
@LAFLAME1111
@LAFLAME1111 3 ай бұрын
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
@axedotdev
@axedotdev 3 ай бұрын
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 3 ай бұрын
I haven't looked at vercel pricing, but there is almost no way that it is cheaper.
@WebDevCody
@WebDevCody 3 ай бұрын
ECS also works (fargate as well)
@TheKevinbigfoot
@TheKevinbigfoot 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!
@rodjenihm
@rodjenihm 3 ай бұрын
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 3 ай бұрын
With today tools is literally 1 command to backup on s3 or similar bth
@antidegenerates7449
@antidegenerates7449 3 ай бұрын
Yeah, rookie will backup to s3, totally
@GreatTaiwan
@GreatTaiwan 3 ай бұрын
@@antidegenerates7449 so don't use a service but use this service .. huh ?
@JagaSantagostino
@JagaSantagostino 3 ай бұрын
@@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 3 ай бұрын
Managing down services and getting email notifications when they go down is also going to be another process to setup
@hotdaq
@hotdaq 3 ай бұрын
I already know most of this, but after 9 minutes I have to say, your explanations are so damn good!
@0xbrandawn
@0xbrandawn 3 ай бұрын
Some of the most important content for new devs. Thanks for doing these
@SaifurRahmanAkash
@SaifurRahmanAkash 3 ай бұрын
wtf! Have I just done a DevOps crash course or what? Somehow I'm super excited
@WebDevCody
@WebDevCody 3 ай бұрын
You’re now a devops engineer, welcome to
@8andre3
@8andre3 3 ай бұрын
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
@mateusztylec215
@mateusztylec215 3 ай бұрын
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.
3 ай бұрын
Now I know where to send everybody that asks me how to start learning devops ❤ You are a beast Cody!!
@elonmask4077
@elonmask4077 3 ай бұрын
never got this explanation so clearly when it comes to devops stuff as SWE. well delivered cody!!!
@tsykin
@tsykin 3 ай бұрын
Thanks for visualizing and walking though the entire process, that's super valuable 👍
@oSpam
@oSpam 3 ай бұрын
Good job babe! 😉
@SeibertSwirl
@SeibertSwirl 3 ай бұрын
Hahaha good job babe you beat me to it!!!!
@BillyBobMusic18
@BillyBobMusic18 11 күн бұрын
Amazing video. Spent all of yesterday getting my site to run on a raspberry pi and this covered almost all of it :)
@okadz7037
@okadz7037 3 ай бұрын
You are legendary 👑
@stevanfreeborn
@stevanfreeborn 3 ай бұрын
This was great man! So helpful to go through this process to demystify what platforms are actually doing for you.
@rand0mtv660
@rand0mtv660 3 ай бұрын
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.
@yaronyahav656
@yaronyahav656 3 ай бұрын
this is incredible.
@nayandey5010
@nayandey5010 3 ай бұрын
i learned something today thank you keep making these
@Steel0079
@Steel0079 3 ай бұрын
Bro, this is gold.
@SeibertSwirl
@SeibertSwirl 3 ай бұрын
Good job babe!!! I would have been first but I went to bed at old lady hours yesterday and missed the early launch 😅
@stonedizzleful
@stonedizzleful 3 ай бұрын
This is so informative dude. Thank you!
@r.k.vignesh7832
@r.k.vignesh7832 3 ай бұрын
This is a great topic to cover, thanks for making this walkthrough!!
@jaymondal7775
@jaymondal7775 3 ай бұрын
next video suggestion - docker and Kubernetes
@j.r.r.tolkien8724
@j.r.r.tolkien8724 3 ай бұрын
Very helpful. Everyone else assumes prior knowledge about this for some reason.
@xaanders
@xaanders 3 ай бұрын
I love it. Thank you so much! Currently getting through a course on AWS. Perfect timing.
@GarthScaysbrook
@GarthScaysbrook 3 ай бұрын
so good :) This was the best explanation I have came across. Thank you
@pankajsharma9801
@pankajsharma9801 3 ай бұрын
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
@techwithsoleyman
@techwithsoleyman 3 ай бұрын
Goated content
@tinrab
@tinrab 3 ай бұрын
This is important for learning how things work. There's a difference between indie hacking and getting skills that make you a better engineer.
@salamandr4111
@salamandr4111 3 ай бұрын
This video is sooo goood HOLYY
@akka3109
@akka3109 3 ай бұрын
This is gold Thank you sir
@tech3425
@tech3425 3 ай бұрын
17:02 totally worth watching till this point. Seriously rofled😂
@jazzdestructor
@jazzdestructor 3 ай бұрын
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 3 ай бұрын
Great points made, learned some stuff even as an experienced developer with DevOps experience
@web3simplified793
@web3simplified793 3 ай бұрын
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
@notril5460
@notril5460 3 ай бұрын
Great video! thank you for doing it 😊
@flamethrower883
@flamethrower883 3 ай бұрын
This is a gem
@HopeUnveiled
@HopeUnveiled 3 ай бұрын
That's a great informative video. Thank you
@thecoder1631
@thecoder1631 3 ай бұрын
devops added in my resume, thanks cody xD
@dandogamer
@dandogamer 3 ай бұрын
Great video, agree with your points. Docker is definitely recommended to learn, it's great for dev environments
@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 ай бұрын
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)
@rafachojnowski7549
@rafachojnowski7549 3 ай бұрын
That's a great video, thanks
@reqtified
@reqtified 3 ай бұрын
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.
@AlexGarcia-ir7fl
@AlexGarcia-ir7fl 3 ай бұрын
Thank god I learned Go. Only drop my binary into the cloud provider UI.
@WebDevCody
@WebDevCody 3 ай бұрын
it is very convient
@marybeansie6367
@marybeansie6367 2 ай бұрын
Wish I learned web dev from you from the beginning.
@TechnologicNick
@TechnologicNick 3 ай бұрын
"this video is for beginners" "learn vim"
@maciekdeveloper
@maciekdeveloper 3 ай бұрын
just use nano instead
@spirisera
@spirisera 3 ай бұрын
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 3 ай бұрын
​@@spiriserabut then your full speed is capped by not using the full suite of features when on a full desktop
@hamm8934
@hamm8934 3 ай бұрын
@@Zoo-Wee-Mama-Sqlook into neovim. There isnt a single ide feature i dont have in my neovim config
@Andrew-yi6zz
@Andrew-yi6zz 3 ай бұрын
@@spirisera indeed it is! learning vim is the best skill investment I've done as a dev, personally couldn't recommend it more!
@jaz6051
@jaz6051 3 ай бұрын
Awesome dude 😎
@dmytromarchenko4250
@dmytromarchenko4250 3 ай бұрын
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)
@johan2895
@johan2895 2 ай бұрын
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.
@Mathes881
@Mathes881 3 ай бұрын
great video!
@RealParadox85
@RealParadox85 3 ай бұрын
Good lord this is a lot of stuff to do. I hate DevOps but respect it lol
@banxengineering
@banxengineering 3 ай бұрын
Sound advice 💪🏽 You can also practice on a Raspberry Pi.
@0xAquaWolf
@0xAquaWolf 3 ай бұрын
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
@andrewbyrd28
@andrewbyrd28 3 ай бұрын
Great video. I recently moved to Railway from Fly. Fly was great, but I really like Railway.
@TheRiddl37
@TheRiddl37 3 ай бұрын
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.
@astronautonmars
@astronautonmars 3 ай бұрын
Vercel's moat basically!
@dddddeeeevvvvvv
@dddddeeeevvvvvv 3 ай бұрын
Really educational stuff. But this is exactly why we have AWS SERVICES
@giuliopimenoff
@giuliopimenoff 3 ай бұрын
super nice video honestly
@ajzack983
@ajzack983 3 ай бұрын
never thought cody would recommend vim btw.
@WebDevCody
@WebDevCody 3 ай бұрын
I mean, I used vim all the time when i used to ssh into machine
@Kodlak15
@Kodlak15 3 ай бұрын
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.
@Oceanus169
@Oceanus169 3 ай бұрын
Will you do a Kotlin and Gradle project?
@parkerrex
@parkerrex 3 ай бұрын
Would love to see an infra walk thru of scary story generator
@WebDevCody
@WebDevCody 3 ай бұрын
I made a video on it
@whatthepeople
@whatthepeople 3 ай бұрын
What keyboard do you use? Nice sound.
@tmanley1985
@tmanley1985 3 ай бұрын
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.
@ziacodes
@ziacodes 3 ай бұрын
I believe that's devops
@nobilissimum
@nobilissimum 3 ай бұрын
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?
@windows07
@windows07 3 ай бұрын
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
@julienv7031
@julienv7031 3 ай бұрын
Vim mention 😊 give you a like
@bstoynov
@bstoynov 3 ай бұрын
TLDR: Yolo deploy to Vercel
@Steel0079
@Steel0079 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 3 ай бұрын
@@Steel0079 huh? You can switch whenever you want, what does egress fees have to do with anything? It's not bucket storage...
@RobGeeDev
@RobGeeDev 3 ай бұрын
@@PraiseYeezus bro thinks he can switch whenever he wants oh boy
@PraiseYeezus
@PraiseYeezus 3 ай бұрын
@@RobGeeDev ^ here's another person that has apparently never used Vercel before
@RobGeeDev
@RobGeeDev 3 ай бұрын
@@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
@ElHeloint
@ElHeloint 3 ай бұрын
I'm sad that you have mentioned nginx before apache. Apache is the goat.
@codewithmarcin
@codewithmarcin 3 ай бұрын
Ever considered making a full self-hosting Next.js 14 app course?
@WebDevCody
@WebDevCody 3 ай бұрын
I have a starter kit with walkthrough videos
@giuliopimenoff
@giuliopimenoff 3 ай бұрын
this has been the exact path of my discord bot deployment haha
@funkdefied1
@funkdefied1 3 ай бұрын
Don’t forget writing a systemd file for your app!
@WebDevCody
@WebDevCody 3 ай бұрын
And we could package our own rpm and deploy to artifactory ;)
@dandogamer
@dandogamer 3 ай бұрын
Would you be able to share how docker does updates with zero downtime?
@bogdanfilimon2486
@bogdanfilimon2486 3 ай бұрын
What keyboard do you have?
@xoutaku7600
@xoutaku7600 3 ай бұрын
nice breakdown, did you notice how the pain started once you introduced docker into the stack ?
@WebDevCody
@WebDevCody 3 ай бұрын
docker actually reduces a lot of pain because I can just run an image on any machine that has the docker daemon.
@prfkct
@prfkct 3 ай бұрын
do i need new vps for every web app? and is there any book or video do you recommend to learn this?
@pencilcheck
@pencilcheck 3 ай бұрын
Heroku and render all are good starting poiint
@vinialves12362
@vinialves12362 3 ай бұрын
waiting someone to create a go-based nextjs
@patolorde
@patolorde 3 ай бұрын
Nice content
@exkris
@exkris 3 ай бұрын
How does DDoS protection fit into this?
@WebDevCody
@WebDevCody 3 ай бұрын
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.
@birch-js9oi
@birch-js9oi 3 ай бұрын
how about coolify
@antonpetrov145
@antonpetrov145 3 ай бұрын
What do you think of docker and blue/green deployments - will it be good for using with vps? Awesome video btw
@WebDevCody
@WebDevCody 3 ай бұрын
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
@eleah2665
@eleah2665 3 ай бұрын
can you get an ngrok account and do this from home?
@justafreak15able
@justafreak15able 3 ай бұрын
Basically a long vercel/railway ad. 🤣🤣
@WebDevCody
@WebDevCody 3 ай бұрын
although... I didn't get paid.. =(
@justafreak15able
@justafreak15able 3 ай бұрын
@@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. 😄
@williamschaefermeyer7007
@williamschaefermeyer7007 3 ай бұрын
good vid
@k00k
@k00k 3 ай бұрын
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 3 ай бұрын
you're a smart man
@k00k
@k00k 3 ай бұрын
@@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.
@lokuo5523
@lokuo5523 3 ай бұрын
TLDR: try to figure out these things on your own until you know the problem these services solve
@RaVq91
@RaVq91 3 ай бұрын
It will take whole months to learn how these things work
@user-td5gy2fh3p
@user-td5gy2fh3p 3 ай бұрын
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 3 ай бұрын
They didn’t teach any of this in computer science.
@enzodossantos2546
@enzodossantos2546 3 ай бұрын
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 3 ай бұрын
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?
What is the "best way" to develop software applications?
18:37
Web Dev Cody
Рет қаралды 290 М.
I think I was wrong about AWS Amplify
30:39
Web Dev Cody
Рет қаралды 62 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Setting up a production ready VPS is a lot easier than I thought.
29:50
docker stack is my new favorite way to deploy to a VPS
27:47
Dreams of Code
Рет қаралды 129 М.
Querying 100 Billion Rows using SQL, 7 TB in a single table
9:07
Arpit Agrawal (Elastiq.AI)
Рет қаралды 54 М.
Self-Hosting Next.js
45:13
leerob
Рет қаралды 78 М.
Serverless might bankrupt you (and how to deploy to a VPS instead)
14:26
How To Handle Permissions Like A Senior Dev
36:39
Web Dev Simplified
Рет қаралды 302 М.
Why I'm moving my side project from Vercel to AWS
15:47
Web Dev Cody
Рет қаралды 69 М.
How I deploy serverless containers for free
6:33
Beyond Fireship
Рет қаралды 580 М.
How web applications are secured
19:54
Web Dev Cody
Рет қаралды 29 М.
The proper way to secure your databases
14:11
Web Dev Cody
Рет қаралды 22 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН