Deploy your Next.js app to a VPS (EASY!)
#Hivelocity #VPS #VPShosting
#ad #collaboration
Get one month of VPS FREE at 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:
Explore Hivelocity’s VPS Plans:
YouTube: @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:
👉 NEW React & Next.js course released at any moment to email subscribers:
👉 Professional JavaScript Course:
👉 Professional CSS Course:
👉 Discord: all my courses have a private Discord where I actively participate
🔔 Email newsletter (React + Next.js course out soon!):
⏱️ 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
[ad_2]
source
Get one month of VPS FREE at https://hivelocityinc.net/3SfVjnB. Use code BYTEGRAD1 at checkout.
Thank you!
Nice video!
Any plans to cover a similar video but for Hostinger's OpenLiteSpeed Ubuntu with Node.js?
I could use one right now 🙂
Good video! But I wonder how to remove port 3000 and add HTTPS support?
very useful tutorial, thanks a lot
Thank you for this! Do you have a video for Digital Ocean? for nextjs with a custom servers too? Thank you!
Thanks for this video! Should you than also install your database on the same VPS?
hola contavo server tiene mejores vps jajaj
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.
informative video…thanks.
can you please show us how to deploy in hostinger vps
Why i shouldn't use VERCEL HOBBY and host app. what benefit do i get in VPS than VERCEL HOBBY.
I can't just upload my app, I have to give the gods at Git my money because I might be too stupid?
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?
Very nice video thank you. One cuestion is working with dinamics routes?
May I deploy more then 2 projects to 1 VPS by seperating port?
After runninng, i can now close the tab?
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.
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?
Thank you very informative.
Cmon, Oracle Cloud still gives you 4CPU, 24RAM, 200 Gb storage for FREE. What can we talk about…
I’ve been keeping there my school’s website, university project website and dozens of personal projects for almost 6 years already and haven’t payed a single dollar.
please make tutorial for deploy next js 13 with app router in cPanel.
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.
Brilliant, thank you!
what if we close the terminal window? will the vps "localhost" server still running?
thanks this is clear
Where is this NextJS + React course? I need it asap. Do you have an ETA when it's ready?
This is incredibly useful and so easy to follow. Thank you.
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?
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.
I am once again asking when will the nextjs course be ready? I'll be the first one to buy it !🙌
Okay wtf how did you just post this after 2 weeks of me struggling to deploy on a VPS 💀💀
I was hoping for a CI/CD pipeline with Github which is crucial for this kind of deployment. However, nice video
I'm just genuinely curious: you've used Windows in the past, here you're using macOS. Why?
OVH it's also good 🙂
You don't have to do fancy stuffs. easiest way is just Use PM2 process manager.
wow, this is really helpfull, thanks!
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?
Can you make a doc website with NextJS 14 Like NextJS docs?
with MDX and colored code, icon, copy code and code path.
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.
Wow I was just thinking about this exact topic yesterday!
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.
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?
4 dollors for the first one is cheap i pay for the same 8 but unfotunatly it only has us locations