- node.js v.8^ https://nodejs.org
- sudo npm i -g pm2
- clone repo from github
- cd /delivery
- npm i
For creating config.js
file you need to see config.example.js
(default config)
`#!/bin/sh
dir_name=$1
cd ~/$dir_name
git pull
cd ..
docker-compose up --build -d`
`pm2 start server.js`
- pm2 list
- pm2 logs server
- pm2 stop server
- pm2 restart server