D
D
Dimka52016-01-26 14:32:32
Software Deployment
Dimka5, 2016-01-26 14:32:32

Deploying and maintaining a Node.js application on a CentOS VPS in production? (Deployment and support Node.js app on VPS with CentOS in production)?

I have SSH access to a VPS server on CentOS.
What actions and commands should I perform to deploy the application site to a new production server?
I would like specifics, because for the time being I imagine it this way (and that is probably not very correct):

  1. We put Node.JS on the server through the yum package manager
  2. Install on MySQL server
  3. We put on the PM2 server via NPM so that the server is always available after possible falls
  4. We put node-deploy-server on the server - the server part for deployment
  5. We put node-deploy-client on a working PC - the client part for deployment
  6. Set up node-deploy-server and node-deploy-client , the application is deployed to the server
  7. Setting up PM2 ( video ) to support the application process (maybe you can do the same with MongoDB?)

How to transfer a MongoDB or MySQL database from a working PC to a server, I can’t imagine how to backup them along with the application?
Heard about docker, can you use it on your VPS? How much does it make deployment easier? maybe there is something else?
Maybe there is an option to deploy using something in conjunction with the Git version control system (not GitHub, the repository is only on a working PC)
What else is needed to keep the application in a working and quickly restored state?
Are you using something better?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vadim75, 2016-02-14
@vadim75

As a variant of the deployment, there is also: dokku.
And the databases are probably "handles", through export / import ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question