Answer the question
In order to leave comments, you need to log in
How to migrate a site to Node.js?
Guys tell me how to transfer the site from one hosting to another. The site is written in Node.js backend. Or rather, I want to transfer from live to the dev server (copy) so that you can make changes and then upload it to live. The site works with the MongoDB database.
Node.js installed on a server (Ubuntu) created a database, uploaded a dump, uploaded files, registered the config, but nothing happens, it just writes the error "ERR_CONNECTION_REFUSED", it seems that it simply does not see anything. Npm yuzal did rebuild, start, etc. but there are no changes.
I myself write in php, but suddenly a project on node appeared and here I lack knowledge and didn’t google anything.
Answer the question
In order to leave comments, you need to log in
Everything turned out to be trite, just instead of the IP address of the server, you just had to register localhost in the request to the database, it helped me personally.
ERR_CONNECTION_REFUSED
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question