sudo useradd gouldi
sudo mkdir /srv/gouldi
sudo chown gouldi /srv/gouldi
sudo su gouldi
mkdir "${HOME}/.npm-packages"echo"prefix=${HOME}/.npm-packages">~/.npmrc
vi .bashrc
type Gi to reach the end of the file and switch vi to insert mode and paste the following block
NPM_PACKAGES="${HOME}/.npm-packages"
PATH="$NPM_PACKAGES/bin:$PATH"# Unset manpath so we can inherit from /etc/manpath via the `manpath` commandunset MANPATH # delete if you already modified MANPATH elsewhere in your configexport MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
run
npm i -g pm2
git clone https://github.com/ag-gipp/GoUldI
cd GoUldI/
pm2 deploy ecosystem.json production setup
update
sudo su gouldi
cd GoUldI
git pull
pm2 deploy production update