Skip to content

Instantly share code, notes, and snippets.

@bleakwood
Created March 31, 2016 07:27
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 bleakwood/68538da0311de78b1106d0f2bddcbfee to your computer and use it in GitHub Desktop.
Save bleakwood/68538da0311de78b1106d0f2bddcbfee to your computer and use it in GitHub Desktop.
deploy process
after ssh into the instance
cd ~/echo
eval $(ssh-agent) # to check if ssh agent is running
ssh-add ~/.ssh/prod_deploy # if unfortunately not then we need to re-add the key
git pull origin develop
fab build_release # build the app
mv /home/ubuntu/echo-0.1.0.tar.gz /home/ubuntu/echo-0.1.0.tar.gz.2016.03.30.2014 # move away the current version, remember to change the date/time
mv /home/ubuntu/echo/rel/echo/echo-0.1.0.tar.gz /home/ubuntu # move the new release over
cd /srv/prod
sudo tar xvzf /home/ubuntu/echo-0.1.0.tar.gz
sudo service echo-prod restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment