DEV Community

Cover image for Deploy Next.js to Contabo VPS

Deploy Next.js to Contabo VPS

Ihor Filippov on January 23, 2024

Introduction A few days ago I experienced a significant increase users count on one of my web services. The current server capabilities...
Collapse
 
enitan_odupitan_2f41c813a profile image
Enitan Odupitan

Thanks so much, these steps taught me all I needed to know and got everything working on my side. But a quick question, how can you replicate this process for two or more apps that you want to be running on same VPS server. Also how does the server understands from the client's request which repository location that needs to be rendered

Collapse
 
developer991 profile image
Devloper991

You forgot to include the pm2 save command

Collapse
 
steravy profile image
Stefan Vitoria

Very usefull man. Worked just fine and my app is up and running.

Collapse
 
dsaga profile image
Dusan Petkovic

Why not just installing a VPS instance with Docker, then just using a container to host the app instead of directly installing nodejs versions?

Collapse
 
igorfilippov3 profile image
Ihor Filippov

I shared my own experience. I work alone on my projects, so I don't use Docker.