Created
June 18, 2013 06:48
-
-
Save arunoda/5803161 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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