Created
March 31, 2016 07:27
-
-
Save bleakwood/68538da0311de78b1106d0f2bddcbfee to your computer and use it in GitHub Desktop.
deploy process
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
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