Deploy your Next.js app to a VPS (EASY!)

  Рет қаралды 27,770

ByteGrad

ByteGrad

Күн бұрын

#Hivelocity #VPS #VPShosting
#ad #collaboration
Get one month of VPS FREE at hivelocityinc.net/3SfVjnB. Use code BYTEGRAD1 at checkout.
By the end of the year, users will be able to deploy in EU-locations Frankfurt and
London.
If you need cPanel licenses, Hivelocity is working to get the best deal, those will be
available in a future release.
Learn more about Hivelocity’s VPS: hivelocityinc.net/3s3OcUF
Explore Hivelocity’s VPS Plans: hivelocityinc.net/3SfVjnB
KZfaq: @HivelocityNet
Twitter: @HIVELOCITY
Facebook: @Hivelocity
Instagram: @Hivelocity.Hosting
TikTok: @HivelocityHosting
Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship). Check out Kinde for authentication: bit.ly/3QOe1Bh
👉 NEW React & Next.js course released at any moment to email subscribers: email.bytegrad.com
👉 Professional JavaScript Course: bytegrad.com/courses/professi...
👉 Professional CSS Course: bytegrad.com/courses/professi...
👉 Discord: all my courses have a private Discord where I actively participate
🔔 Email newsletter (React + Next.js course out soon!): email.bytegrad.com
⏱️ Timestamps:
0:00 Why VPS?
0:28 Hivelocity VPS
1:55 Simple Next.js app
3:41 Push to GitHub
4:44 SSH into VPS
6:44 git is pre-installed on Hivelocity's VPS :)
7:19 Install Node.js (on VPS)
9:26 git clone (on VPS)
10:36 npm run build (on VPS)
12:05 npm run start (on VPS)
13:42 Hivelocity overview
14:06 Isolated server resources
14:28 Global availability
14:36 Expert U.S.-Based Support (24/7/365)
14:52 LOW latency due to fast 2+ Tbps Network
15:04 DDOS protection built-in!
15:15 Pick your OS -- even install custom OS
15:24 VPS fundamentals

Пікірлер: 81
@ByteGrad
@ByteGrad 7 ай бұрын
Get one month of VPS FREE at hivelocityinc.net/3SfVjnB. Use code BYTEGRAD1 at checkout.
@ahmedjaber8595
@ahmedjaber8595 7 ай бұрын
it would be beneficial if you could extend this series to cover topics like dockerizing Node.js applications (including Next.js, React.js, Nest.js...), utilizing subdomains, managing versioning and releases on Git Actions, and implementing automatic deployment to the VPS when pushing changes to the main branch
@jitx2797
@jitx2797 7 ай бұрын
You just explained the devops job
@ahmedjaber8595
@ahmedjaber8595 7 ай бұрын
​@@jitx2797 In today's job market, it has become increasingly common for companies to expect developers to possess DevOps skills rather than hiring dedicated DevOps personnel.
@FlashViolet
@FlashViolet 7 ай бұрын
wow, this plan is awesome
@Eventyret
@Eventyret 7 ай бұрын
Actually easypanel does it for you
@nmastroianni
@nmastroianni 7 ай бұрын
I second this. I would love the follow up steps in a series. Let's Encrypt with certbot etc, Dockerization, Automated building and deployment with GitHub? Yes please!
@user-ik7rp8qz5g
@user-ik7rp8qz5g 7 ай бұрын
There are more things to cover to make this app work as intended. Without them it looks more like 15 minute ad than tutorial. 1. How to make passwordless ssh login 2. How to set up firewall 3. How to allocate swap memory and how much you would realistically need at lowest spec 4. How to set correct node flag for available memory 5. How to configure pm2 (you mentioned it briefly) 6. How to configure reverse proxy in nginx 7. How to connect domain and issue certificates 8. Optionally - how to use nginx for serving static cache Alternatively starting from step 4 - how to use containers to run node process and how to use traefik for reverse proxy. Can you record couple more videos to explain both ways in detail? Personally I would be interested in docker+traefik, since I have no experience in this workflow.
@Chris...S
@Chris...S 7 ай бұрын
I use CloudPanel it makes it easy to setup most that as well as mysql db
@Rahman-xm7zm
@Rahman-xm7zm 6 ай бұрын
You should give Kamal a try
@alainportant6412
@alainportant6412 4 күн бұрын
@@Rahman-xm7zm maybe use the Vercel and avoid all this crap
@rezakhani8627
@rezakhani8627 4 ай бұрын
Hello, I have a project in which I use Next.js, Node.js, and PostgreSQL. I can run this project on a VPS without any problems, but I’ve been advised to use Docker. Do I necessarily have to use Docker to deploy such a project? Please guide me.
@rapelangmathibe8761
@rapelangmathibe8761 4 ай бұрын
After runninng, i can now close the tab?
@FRESHGAMENEWS
@FRESHGAMENEWS 6 ай бұрын
Hello ByteGrad! Thank you for the video. I did exactly as in the video but i get 502 Bad Gateway. How can i fix it?
@nitecheng
@nitecheng 6 ай бұрын
what if we close the terminal window? will the vps "localhost" server still running?
@saralightbourne
@saralightbourne 7 ай бұрын
i would really like to see an implementation of CI/CD for your VPS. how to sync code on the server, how to restart the service. i never figured out how to do it properly without docker
@JohnMcclaned
@JohnMcclaned 6 ай бұрын
Where is this NextJS + React course? I need it asap. Do you have an ETA when it's ready?
@ilirbajrami2902
@ilirbajrami2902 7 ай бұрын
I was hoping for a CI/CD pipeline with Github which is crucial for this kind of deployment. However, nice video
@favanzzo
@favanzzo 7 ай бұрын
Hi, first of all ty for the JS course..really love it! but i was a bit sad to see that the react course will have almost the same projects? i know its different (declarite etc..) but would be nice to see other projects.
@videoponder4673
@videoponder4673 2 ай бұрын
Thank you for the interesting and helpful video. I just do not get why to use Github and not simply FTP to transfer the files to server?
@cookieman.19
@cookieman.19 3 ай бұрын
May I deploy more then 2 projects to 1 VPS by seperating port?
@zaritzki
@zaritzki Ай бұрын
Thank you for this! Do you have a video for Digital Ocean? for nextjs with a custom servers too? Thank you!
@mohdsahil226
@mohdsahil226 Ай бұрын
Hi Thank you for great content. Would you please also help on how to setup dev branch on sub domain, since the port is same, it always goes to main branch. I am using nginx.
@user-mo8fi6lk2w
@user-mo8fi6lk2w 3 ай бұрын
Very nice video thank you. One cuestion is working with dinamics routes?
@SuperSniffen
@SuperSniffen 7 ай бұрын
What do I lose from doing this instead of using Vercel? Is there any particular functionality for Next which will not work, such as serverless etc?
@Chris...S
@Chris...S 7 ай бұрын
Edge won't work. Using a VPS is really for non scalable apps. For that, it is best to use serverless PaSs hosting
@CloudieDev
@CloudieDev 6 ай бұрын
This is incredibly useful and so easy to follow. Thank you.
@maciejziehlke4479
@maciejziehlke4479 7 ай бұрын
TBH I was hoping that you'll show full setup, DNS, SSL, etc. I guess this is hot topic now, so maybe I should do it and finally record something...
@Chris...S
@Chris...S 7 ай бұрын
All that can be easily setup with CloudPanel which is like cpanel but open source.
@gadgetboyplaysmc
@gadgetboyplaysmc 7 ай бұрын
Okay wtf how did you just post this after 2 weeks of me struggling to deploy on a VPS 💀💀
@Eventyret
@Eventyret 7 ай бұрын
I found that it was expensive i pay 6$ / 5£ for 4 vCPU Cores 8 GB RAM 200 GB SSD 32 TB Traffic* (unlimited incoming) Which is cheaper then what this offering would be.
@Riczerq
@Riczerq 7 ай бұрын
It's probably not in the US
@greenlines1208
@greenlines1208 7 ай бұрын
what do you use?
@jaydeep-p
@jaydeep-p 7 ай бұрын
Which service? 32tb is amazing
@ardianhotii
@ardianhotii 7 ай бұрын
Thank you, very nice video , do you know any vps service that is located in europe with similar prices or if there are any with a free plan
@ThuongHoang-fx5bi
@ThuongHoang-fx5bi 7 ай бұрын
Hi bro, I have a question. How to deploy to VPS without pull source code to server. Can I only copy .next folder and deploy that foldder to server?
@ByteGrad
@ByteGrad 7 ай бұрын
Yes, that should work too
@biLLie_wiLLie
@biLLie_wiLLie 7 ай бұрын
Nice! Can you show how to connect a project on the server and git to implement all changes immediately like on Vercel?
@ByteGrad
@ByteGrad 7 ай бұрын
Good idea
@Chris...S
@Chris...S 7 ай бұрын
You use git actions for that
@OnlyJavascript
@OnlyJavascript 2 ай бұрын
can you please show us how to deploy in hostinger vps
@Anne-kz4fi
@Anne-kz4fi 5 ай бұрын
This was very helpful, thank you. I was about to deploy my first website and was looking for a vps for nextjs. Could you also make a tutorial for nextjs with mysql? That would be really helpful.
@AnthonyCandaele
@AnthonyCandaele Ай бұрын
Thanks for this video! Should you than also install your database on the same VPS?
@Smartercow
@Smartercow 7 ай бұрын
Do you have to include port 3000 in the DNS?
@maciejziehlke4479
@maciejziehlke4479 7 ай бұрын
Nope, DNS is not smart enough to understand ports. You need to setup http server (Caddy, Apache, Nginx) on your VPS that will proxy port 3000 to 80 and 443, or run Next directly on port 80 (you'll need to be sudo as this is privileged port) and then use Cloudflare so they'll take care of SSL (you'll need to set SSL/TLS encryption mode to "flexible")
@Smartercow
@Smartercow 7 ай бұрын
@@maciejziehlke4479 Okay thanks
@nishaanthms
@nishaanthms 2 ай бұрын
Why i shouldn't use VERCEL HOBBY and host app. what benefit do i get in VPS than VERCEL HOBBY.
@shawnlee5956
@shawnlee5956 7 ай бұрын
althoug the price usd 3+ vs usd 4 this simple server compare can do what alicloud simple application server cant, which is the next js server cant run build in there, something cause the server hdd iops reach peak, can cause os kill the build task. but sadly. asia area dont have server.
@M7ilan
@M7ilan 7 ай бұрын
Can you make a doc website with NextJS 14 Like NextJS docs? with MDX and colored code, icon, copy code and code path.
@tdombui
@tdombui 3 ай бұрын
why not do it yourself? This is a ridiculous request.
@kakashizet7496
@kakashizet7496 5 ай бұрын
please make tutorial for deploy next js 13 with app router in cPanel.
@TomaszTomczuk
@TomaszTomczuk 7 ай бұрын
you can do AWS Amplify as well
@Showmatic
@Showmatic 7 ай бұрын
Wow I was just thinking about this exact topic yesterday!
@okkaraung9512
@okkaraung9512 7 ай бұрын
Are you planning on release React courses on Udemy ? I am waiting. Your javascript course is so good so far. I am still waiting for React course and Node.js course.
@Im-rollin-rollin
@Im-rollin-rollin 7 ай бұрын
I am once again asking when will the nextjs course be ready? I'll be the first one to buy it !🙌
@tsykin
@tsykin 4 ай бұрын
Thank you so much for this tutorial, it worked for me! 👍 Do you mind if I use some knowledge that you share in this video to create an instruction on how to deploy Next.js not to a paid VPS, but a Google Cloud Free Tier VM?
@NewsIdeasInnovation
@NewsIdeasInnovation 6 ай бұрын
Brilliant, thank you!
@williamcao5139
@williamcao5139 7 ай бұрын
hey, i've waited your course a long time. please release it
@AndersonSilvaMMA
@AndersonSilvaMMA 7 ай бұрын
I'm just genuinely curious: you've used Windows in the past, here you're using macOS. Why?
@akbarnafisa4969
@akbarnafisa4969 7 ай бұрын
wow, this is really helpfull, thanks!
@NOTHING-en2ue
@NOTHING-en2ue 4 күн бұрын
very useful tutorial, thanks a lot
@FlashViolet
@FlashViolet 7 ай бұрын
Omg, this is exactly what i've been trying to do for a couple of days for now. How did you know? =0
@user-gq7ed7cp3z
@user-gq7ed7cp3z 6 ай бұрын
thanks this is clear
@SamyarBorder
@SamyarBorder 7 ай бұрын
4 dollors for the first one is cheap i pay for the same 8 but unfotunatly it only has us locations
@ByteGrad
@ByteGrad 7 ай бұрын
Soon they will have locations outside US too!
@Leesdjo
@Leesdjo 4 ай бұрын
Thank you very informative.
@filix6360
@filix6360 2 ай бұрын
informative video...thanks.
@iSnakeBuzz
@iSnakeBuzz 7 ай бұрын
OVH it's also good :)
@vernevens1598
@vernevens1598 2 ай бұрын
I can't just upload my app, I have to give the gods at Git my money because I might be too stupid?
@technoh4cksoficial
@technoh4cksoficial Ай бұрын
hola contavo server tiene mejores vps jajaj
NextJS Tutorial - All 12 Concepts You Need to Know
44:38
ByteGrad
Рет қаралды 228 М.
Dockerize Next.js & Deploy to VPS (EASY!)
19:43
ByteGrad
Рет қаралды 40 М.
Omega Boy Past 3 #funny #viral #comedy
00:22
CRAZY GREAPA
Рет қаралды 34 МЛН
CAN YOU HELP ME? (ROAD TO 100 MLN!) #shorts
00:26
PANDA BOI
Рет қаралды 36 МЛН
WHY DOES SHE HAVE A REWARD? #youtubecreatorawards
00:41
Levsob
Рет қаралды 39 МЛН
Why I'd never host my apps on a VPS
13:43
Web Dev Cody
Рет қаралды 28 М.
Deploy Next Js on Cloudflare
3:57
Sphorb
Рет қаралды 6 М.
Next.js setup: Деплой на VPS | Jest | Playwright | CI/CD | Sentry
4:03:28
Евгений Паромов | Front-end
Рет қаралды 25 М.
Why People Aren't Deploying to Vercel Anymore
5:55
Josh tried coding
Рет қаралды 144 М.
If I had to host on a single VPS, this is how I'd do it
9:35
Web Dev Cody
Рет қаралды 12 М.
BEST ways to deploy a NextJS app
4:56
Rifik
Рет қаралды 32 М.
Should you use a VPS instead of Vercel, Netlify & co?
13:14
Maximilian Schwarzmüller
Рет қаралды 6 М.
All 29 Next.js Mistakes Beginners Make
1:45:10
ByteGrad
Рет қаралды 53 М.
Omega Boy Past 3 #funny #viral #comedy
00:22
CRAZY GREAPA
Рет қаралды 34 МЛН