Created
November 28, 2011 12:41
-
-
Save Imomoi/1400257 to your computer and use it in GitHub Desktop.
This file contains 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
export VERSION=v0.2.0 | |
mkdir $VERSION | |
cd $VERSION | |
git init | |
git remote add origin git@github.com:Imomoi/queue.git | |
git fetch --tag | |
git checkout $VERSION | |
cd .. | |
tar czf $VERSION.tgz $VERSION | |
export REMOTE_APP=/var/applications/queue | |
scp $VERSION.tgz 192.168.100.246:$REMOTE_APP | |
export VERSION=v0.2.0 | |
export REMOTE_APP=/var/applications/queue | |
cd $REMOTE_APP && tar xzf $VERSION.tgz | |
cd $REMOTE_APP/$VERSION && sh bundle_all | |
cd $REMOTE_APP/$VERSION/Administrator && rake assets:precompile | |
cd $REMOTE_APP/$VERSION/Internet && rake assets:precompile | |
cd $REMOTE_APP/$VERSION/OperatorApp && rake assets:precompile | |
cd $REMOTE_APP/$VERSION | |
sudo service queueapp stop | |
rvmsudo foreman export upstart /etc/init -c web_admin=3,web_internet=3,web_operator=3,job_compile_time_table=1,job_release_slots=2 -a queueapp -u `whoami` | |
sudo service queueapp start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment