Skip to content

Instantly share code, notes, and snippets.

@bsphere
Last active December 10, 2015 22:38
Show Gist options
  • Save bsphere/4504104 to your computer and use it in GitHub Desktop.
Save bsphere/4504104 to your computer and use it in GitHub Desktop.
#!/bin/sh
GIT_WORK_TREE=/home/ubuntu/myapp git checkout -f
echo "Installing dependencies..."
cd /home/ubuntu/myapp
npm install
echo "Restarting node.js..."
sudo restart myapp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment