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

preview_player
Показать описание
#Hivelocity #VPS #VPShosting
#ad #collaboration

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.

YouTube: @HivelocityNet
Twitter: @HIVELOCITY
Facebook: @Hivelocity
Instagram: @Hivelocity.Hosting
TikTok: @HivelocityHosting

👉 Discord: all my courses have a private Discord where I actively participate

⏱️ Timestamps:
0:00 Why VPS?
0:28 Hivelocity VPS
3:41 Push to GitHub
4:44 SSH into VPS
6:44 git is pre-installed on Hivelocity's 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 .
.
Рекомендации по теме
Комментарии
Автор

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

ahmedjaber
Автор

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.

virtual
Автор

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

saralightbourne
Автор

I was hoping for a CI/CD pipeline with Github which is crucial for this kind of deployment. However, nice video

ilirbajrami
Автор

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?

videoponder
Автор

Very nice video thank you. One cuestion is working with dinamics routes?

FerSpanos
Автор

Thank you for this! Do you have a video for Digital Ocean? for nextjs with a custom servers too? Thank you!

zaritzki
Автор

Okay wtf how did you just post this after 2 weeks of me struggling to deploy on a VPS 💀💀

gadgetboyplaysmc
Автор

This is incredibly useful and so easy to follow. Thank you.

CloudieDev
Автор

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.

mohdsahil
Автор

Thanks for this video! Should you than also install your database on the same VPS?

AnthonyCandaele
Автор

Nice! Can you show how to connect a project on the server and git to implement all changes immediately like on Vercel?

biLLie_wiLLie
Автор

please make tutorial for deploy next js 13 with app router in cPanel.

kakashizet
Автор

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.

Anne-kzfi
Автор

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.

rezakhani
Автор

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

maciejziehlke
Автор

Good video! But I wonder how to remove port 3000 and add HTTPS support?

sharkdeng
Автор

Why i shouldn't use VERCEL HOBBY and host app. what benefit do i get in VPS than VERCEL HOBBY.

nishaanthms
Автор

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.

favanzzo
Автор

Nice video!
Any plans to cover a similar video but for Hostinger's OpenLiteSpeed Ubuntu with Node.js?
I could use one right now :)

valeriykuvshinov