Skip to content

Instantly share code, notes, and snippets.

@Imomoi
Created November 28, 2011 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Imomoi/1400257 to your computer and use it in GitHub Desktop.
Save Imomoi/1400257 to your computer and use it in GitHub Desktop.
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