Skip to content

Instantly share code, notes, and snippets.

@arunoda
Created June 18, 2013 06:48
Show Gist options
  • Save arunoda/5803161 to your computer and use it in GitHub Desktop.
Save arunoda/5803161 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd ~/
#checkout repo
cd app.git
git pull origin master
git checkout master
cd ..
#moving git app to the tmp
rm -rf /tmp/app.git
cp -R app.git /tmp
cd /tmp/app.git
#creating bundle
mrt bundle ../bundle.tar.gz
cd ../
rm -rf bundle
tar xzvf bundle.tar.gz
#installing fibers
cd bundle/server
npm install fibers
cd ../../
#moving app
rm -rf ~/app
mv bundle ~/app
#restart apps
stop app
start app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment