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
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
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 ;)
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.
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!
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.
@@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
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
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.
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🍻
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
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
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
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.
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.
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)
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.
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
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.
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.
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.
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
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 :).
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?
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?
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 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.
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?
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
@@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. 😄
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 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
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.
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.
@@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)
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
No degen Fireship adhd cuts, whatsoever.
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
In a world of fabricated tones and faces this is refreshing.
This is better than most of the 'learn devops in 5 hours' videos. Your way of illustrating a 'complex' topic is phenomenal man, thanks!
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 ;)
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.
unbelievable. i have no idea how you can teach so effectively. blows my mind every time. as usual: thank you!!
me neither, I just yolo it
This was amazing. Fastest 20 minutes of my life, and it was about dev ops
Simply one of the best videos by one of the most underrated content creators!
This was phenomenal. I had knowledge of the individual components but never took time to put them together in a coherent manner. Great work
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!
One of the most helpful dev videos ive seen. Thank you!
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.
You forgot the pain of making database backups. And praying to God the file is not corrupted when you need to restore it.
With today tools is literally 1 command to backup on s3 or similar bth
Yeah, rookie will backup to s3, totally
@@antidegenerates7449 so don't use a service but use this service .. huh ?
@@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
Managing down services and getting email notifications when they go down is also going to be another process to setup
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
Thanks for visualizing and walking though the entire process, that's super valuable 👍
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.
I haven't looked at vercel pricing, but there is almost no way that it is cheaper.
ECS also works (fargate as well)
Some of the most important content for new devs. Thanks for doing these
I already know most of this, but after 9 minutes I have to say, your explanations are so damn good!
wtf! Have I just done a DevOps crash course or what?
Somehow I'm super excited
You’re now a devops engineer, welcome to
never got this explanation so clearly when it comes to devops stuff as SWE. well delivered cody!!!
Now I know where to send everybody that asks me how to start learning devops ❤ You are a beast Cody!!
This was great man! So helpful to go through this process to demystify what platforms are actually doing for you.
This is a great topic to cover, thanks for making this walkthrough!!
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🍻
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
Goated content
This is so informative dude. Thank you!
i learned something today thank you
keep making these
I love it. Thank you so much!
Currently getting through a course on AWS. Perfect timing.
so good :) This was the best explanation I have came across. Thank you
Good job babe!!! I would have been first but I went to bed at old lady hours yesterday and missed the early launch 😅
next video suggestion - docker and Kubernetes
Great points made, learned some stuff even as an experienced developer with DevOps experience
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
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
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.
Bro, this is gold.
Great video! thank you for doing it 😊
You are legendary 👑
Great video, agree with your points. Docker is definitely recommended to learn, it's great for dev environments
Good job babe! 😉
Hahaha good job babe you beat me to it!!!!
That's a great informative video. Thank you
Very helpful. Everyone else assumes prior knowledge about this for some reason.
This is gold
Thank you sir
This is important for learning how things work. There's a difference between indie hacking and getting skills that make you a better engineer.
devops added in my resume, thanks cody xD
This video is sooo goood HOLYY
17:02 totally worth watching till this point. Seriously rofled😂
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.
This is a gem
Thank god I learned Go. Only drop my binary into the cloud provider UI.
it is very convient
That's a great video, thanks
Great video. I recently moved to Railway from Fly. Fly was great, but I really like Railway.
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)
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.
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
this is incredible.
Sound advice 💪🏽 You can also practice on a Raspberry Pi.
Wish I learned web dev from you from the beginning.
super nice video honestly
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.
Vercel's moat basically!
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.
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.
great video!
Good lord this is a lot of stuff to do. I hate DevOps but respect it lol
Really educational stuff. But this is exactly why we have AWS SERVICES
Awesome dude 😎
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
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 :).
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?
never thought cody would recommend vim btw.
I mean, I used vim all the time when i used to ssh into machine
I believe that's devops
I'm sad that you have mentioned nginx before apache. Apache is the goat.
"this video is for beginners"
"learn vim"
just use nano instead
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?
@@spiriserabut then your full speed is capped by not using the full suite of features when on a full desktop
@@Zoo-Wee-Mama-Sqlook into neovim. There isnt a single ide feature i dont have in my neovim config
@@spirisera indeed it is! learning vim is the best skill investment I've done as a dev, personally couldn't recommend it more!
Would love to see an infra walk thru of scary story generator
I made a video on it
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.
you're a smart man
@@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.
What keyboard do you use? Nice sound.
Heroku and render all are good starting poiint
this has been the exact path of my discord bot deployment haha
Will you do a Kotlin and Gradle project?
Vim mention 😊 give you a like
do i need new vps for every web app? and is there any book or video do you recommend to learn this?
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?
Would you be able to share how docker does updates with zero downtime?
waiting someone to create a go-based nextjs
What do you think of docker and blue/green deployments - will it be good for using with vps? Awesome video btw
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
Don’t forget writing a systemd file for your app!
And we could package our own rpm and deploy to artifactory ;)
Ever considered making a full self-hosting Next.js 14 app course?
I have a starter kit with walkthrough videos
What keyboard do you have?
nice breakdown, did you notice how the pain started once you introduced docker into the stack ?
docker actually reduces a lot of pain because I can just run an image on any machine that has the docker daemon.
Nice content
Basically a long vercel/railway ad. 🤣🤣
although... I didn't get paid.. =(
@@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. 😄
TLDR: Yolo deploy to Vercel
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.
@@Steel0079 huh? You can switch whenever you want, what does egress fees have to do with anything? It's not bucket storage...
@@PraiseYeezus bro thinks he can switch whenever he wants oh boy
@@RobGeeDev ^ here's another person that has apparently never used Vercel before
@@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
good vid
how about coolify
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.
They didn’t teach any of this in computer science.
can you get an ngrok account and do this from home?
How does DDoS protection fit into this?
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.
Setting upl load balancer with multiple servers are costly though for beginners especially learners from 3rd world countries. Unfortunate :(
1:47 I'd say there's no reason to "have a decent amount of cores and memory" for learning ssh and server configuration
The reason I say that is because if you get a 512mb machine, it’s often pretty slow.
@@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)
step 1. don't deploy to vercel