Skip to content

Commit

Permalink
Use rsync explicitly.
Browse files Browse the repository at this point in the history
  • Loading branch information
kcarnold committed Jun 10, 2011
1 parent 52af196 commit 0f2a0d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion divisi2
Submodule divisi2 updated 3 files
+1 −1 doc/dense.rst
+10 −0 doc/intro.rst
+1 −1 doc/tutorial_aspace.rst
7 changes: 5 additions & 2 deletions docs/fabfile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from __future__ import with_statement
from fabric.api import *
from fabric.contrib.project import rsync_project

env.hosts = ['anemone.media.mit.edu']

Expand All @@ -14,7 +13,11 @@ def deploy():
def update_server():
# later, make this assemble things on the server side
# this requires understanding how it's set up, though
rsync_project(local_dir='_build/html/', remote_dir='/srv/csc/cscweb/static/docs/')
#
# Not using some of the rsync_project options:
# -p, --perms preserve permissions
# -t, --times preserve times
local('rsync --del -hrvz _build/html/ %s:/srv/csc/cscweb/static/docs/' % env.host, capture=False)

def push():
build_docs()
Expand Down

0 comments on commit 0f2a0d6

Please sign in to comment.