L
L
lucky42020-10-16 18:30:35
Node.js
lucky4, 2020-10-16 18:30:35

How to deploy a project to a ready-made hosting?

I am making a portfolio, first I did it on React, then I decided to migrate it to NextJS.
Well, now I wondered, when I bring everything to mind and finish the project, then what should I do with it next.

As I understand it, not every project that is written in Nodejs cannot be uploaded to conditional hosting, like ukraine. In order to upload a project to hosting, the host itself must support nodejs? And is uploading nextjs different from cra to hosting?

And this is a very noob question. If I have two local servers (One is a project written in NextJS, and the second is api). How should they be deployed on two different domains?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Gololobov, 2020-10-16
@lucky4

Use a vps server, install some ubuntu on it, install
nginx ,
fasten 2 domains. for example, server.com and api.server.com,
put an ssl certificate (it can be free, for example, letsencrypt)
Through nginx, proxy by address to internal services running on different ports

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question