Skip to content

Latest commit

 

History

History
115 lines (94 loc) · 2.37 KB

update-tools.md

File metadata and controls

115 lines (94 loc) · 2.37 KB

How to update Mac tools

Instructions for how to update all the tools on the MacOS Server

Tool List

  1. nvm
  2. node (nvm)
  3. npm (nvm)
  4. logrotate (brew service)
  5. pm2 (nvm)
  6. bunyan (nvm)
  7. minio (brew service)
  8. mongodb (brew service)
  9. caddy (brew service)
  10. mc (brew)
  11. rclone (brew)
  12. aha (brew)

Process Flow

  1. install nvm
  2. update update node
  3. install pm2 & bunyan -> nvm:node
  4. brew update minio, mongodb & caddy

nvm

get latest command at nvm-sh/nvm.

for v0.34.0:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash

node

Using nvm:

nvm install <version #>
e.g.
nvm install 8.15.1

Will need to restart the shell.

npm

npm install -g npm@<version #>
e.g.
npm install -g [email protected]

Will need to restart the shell.

logrotate

brew install logrotate

pm2 will handle starting/stopping logrotate for pm2 logs.

pm2

Update pm2:

pm2 save
npm install pm2 -g
pm2 update

Will need to restart the shell.

logrotate for pm2

Details here.

Configure to rotate once per day at midnight

pm2 set pm2-logrotate:rotateInterval '0 0 * * *'

bunyan

npm install -g bunyan

Will need to restart the shell.

Brew Services

Automatically, sets up OSX services that will be started at reboot. To get help enter brew services

brew install minio
brew install [email protected]
brew install caddy
brew install minio/stable/mc
  • plists can be found at mroot/config/<tool>
  • plists are installed to /usr/local/Cellar
cd /usr/local/Cellar

dig into each recipe and then copy in the plist from mroot/config/<tool>

brew will copy these plists to /Library/LaunchDaemons/

Update all

FAQ

Update brew, then upgrade all services:

brew update
brew outdated
brew upgrade

MinIO client (mc) config

Configure mc for easy usage with meris. Add a cloud storage service alias:

mc config host add <ALIAS> <YOUR-S3-ENDPOINT> <YOUR-ACCESS-KEY> <YOUR-SECRET-KEY> <API-SIGNATURE>
mc config host add meris <meris s3 url> <ACCESS-KEY> <SECRET-KEY>