curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
or
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
then
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
nvm install v6.11.0
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:certbot/certbot
$ sudo apt-get update
$ sudo apt-get install certbot
then
certbot certonly --standalone -d yoururl.com
then
certbot renew --dry-run
npm install -g pm2
git clone https://github.com/Remote-Apprentice/RAB.git rab
clientId=YOUR_CLIENT_ID
clientSecret=YOUR_CLIENT_SECRET
token=YOUR_BOT_TOKEN
siteUrl=YOUR_SITE_URL
cd rab
pm2 start app.js
pm2 stop app
cd client
ng build --prod
see https://github.com/angular/angular-cli for more commands