Install Yarn
https://linuxize.com/post/how-to-install-yarn-on-ubuntu-18-04/
Install Node
curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
Run Yarn
yarn
Install and run CouchDB v3.1 (use apt install process for Ubuntu 18.04)
https://docs.couchdb.org/en/3.1.0/install/index.html
node lib/indexInfo.js
node lib/infoEngines.js
Install pm2 globally
sudo npm install pm2 -g
Install pm2 log rotation (note: the command is pm2 instead of npm)
sudo pm2 install pm2-logrotate
Run as standard user
pm2 start pm2.json
Control pm2
pm2 stop infoServer
pm2 restart infoServer
pm2 delete infoServer
pm2 stop infoEngine
pm2 restart infoEngine
pm2 delete infoEngine
Launch pm2 on restart
pm2 startup
pm2 save
pm2 monit
pm2 logs <infoServer|infoEngine|'all'>
Please see our Caddy setup documentation for details.