deploy script now deploys the current branch

This commit is contained in:
Martin
2017-10-30 10:50:59 +01:00
parent b3486284eb
commit 8eb74f2a48
Vendored
+2 -1
View File
@@ -8,7 +8,8 @@ env.hosts = (
def deploy():
local('git archive --format tar.gz -o /tmp/api.tar.gz master', capture=False)
branch = local('git rev-parse --abbrev-ref HEAD', capture=True)
local('git archive --format tar.gz -o /tmp/api.tar.gz {0}'.format(branch), capture=False)
put('/tmp/api.tar.gz', '/tmp/api.tar.gz')
with cd('/srv/api'):
run('tar xzf /tmp/api.tar.gz')