Skip to content

Instantly share code, notes, and snippets.

@djbobbydrake
Last active March 6, 2018 04:30
Show Gist options
  • Save djbobbydrake/828fe69ff6630e09b2b69e68b636efac to your computer and use it in GitHub Desktop.
Save djbobbydrake/828fe69ff6630e09b2b69e68b636efac to your computer and use it in GitHub Desktop.
Upgrading node, yarn, pm2

Node

nvm install 8.9.4

nvm use 8.9.4

nvm alias default 8.9.4

Yarn

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -

echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

sudo apt-get update && sudo apt-get install yarn

PM2

pm2 save

npm install pm2 -g

pm2 update

codebase

sh deploy.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment