Skip to content

Commit

Permalink
Update fabfile exp command to use rsync for media
Browse files Browse the repository at this point in the history
  • Loading branch information
dellsystem committed Sep 13, 2018
1 parent 2fa3a29 commit 09f51c5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,9 @@ def exp():
put(local_filename, 'new-socialist/backups')

# Sync the media directories.
#local('tar czvf media.tar.gz media/*')
#put('media.tar.gz', 'new-socialist/media.tar.gz')
local('rsync -Prz media/ %s:new-socialist/media/' % env.host_string)

with cd('new-socialist'):
#run('tar xvzf media.tar.gz')
# Then run loaddata.
run('source env/bin/activate && django/manage.py loaddata ' + local_filename)

Expand Down

0 comments on commit 09f51c5

Please sign in to comment.