Skip to content

Instantly share code, notes, and snippets.

@dannycoates
Last active December 17, 2015 14:08
Show Gist options
  • Save dannycoates/5621744 to your computer and use it in GitHub Desktop.
Save dannycoates/5621744 to your computer and use it in GitHub Desktop.
update the node version on awsbox
#!/usr/bin/env bash
VERSION=$NODE_VERSION
: ${VERSION:="stable"}
echo "installing nave"
git clone git://github.com/isaacs/nave.git
sudo ln -s /home/ec2-user/nave/nave.sh /usr/local/bin/nave
echo "using node" $VERSION
sudo nave/nave.sh usemain $VERSION
echo "updating (proxy) npm modules"
sudo su -l -c "npm install forever@0.10.8 --save" proxy
echo "updating (app) npm modules"
sudo su -l -c "npm install forever@0.10.8" app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment