D
D
demsee2018-09-12 12:46:48
Node.js
demsee, 2018-09-12 12:46:48

How to install nodejs on VPS(VDS)?

Registered on a free VPS (VDS) server. With it, I can create a github repository container. Can I create such a repository with a node, connect (create a container) to my repository from a VPS (VDS) server and work with a node on my server?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alex_Zdorgor, 2018-09-12
@Alex_Zdorgor

To install Node.js, you need to follow the installation instructions from the site and you can connect and work. Containers are not really needed.
If you really want to tie everything on the docker, then you will have to cut, almost Continius Integration, with rebuilding the container image and restarting it after a new commit to the repository.
And most importantly, most free VPS on OpenVZ virtualization, and docker is not very friendly with it.

A
Alexander Taratin, 2018-09-12
@Taraflex

The simplest way
https://github.com/creationix/nvm
For native modules, you will also need
build-essential python and often openssl libssl-dev

O
Official account of the Timeweb team, 2020-07-13
@timeweb_team

in this case, we advise you to consider creating and working specifically in the context of working with a Docker container, in which you can customize the container to your needs and deploy the project on any servers - https://nodejs.org/en/docs/guides/nodejs- docker-webapp/ .
If necessary, you can use our ready-made solutions, including a server with pre-installed Docker - https://timeweb.com/en/solutions/os_po/

J
justhostRU, 2021-08-08
@justhostRU

It is better to install dockers on a VPS with kvm, openvz is essentially a container too, without full virtualization.
> Can I create such a repository with a node
, yes, you can raise your github, but you will need a VPS with more serious resources.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question