commented out unnecessary code
modified: modules/deploy.py
This commit is contained in:
parent
13fd4c962c
commit
1fce8f0c54
1 changed files with 14 additions and 6 deletions
|
|
@ -391,8 +391,8 @@ def media(destination_branch):
|
|||
remote_dir = dynamic_dst
|
||||
local_dir = dynamic_src
|
||||
upstream = True
|
||||
configuration_dst = initialize.environment(
|
||||
destination_branch)
|
||||
# configuration_dst = initialize.environment(
|
||||
# destination_branch)
|
||||
|
||||
print "\ncopy from {src} to {dst}\n".format(
|
||||
src=configuration_src.project.host,
|
||||
|
|
@ -411,10 +411,18 @@ def media(destination_branch):
|
|||
print_console("no moving media files from staging to production")
|
||||
return
|
||||
|
||||
from fabric.contrib.project import rsync_project
|
||||
rsync_project(remote_dir=remote_dir,
|
||||
local_dir=local_dir,
|
||||
upload=upstream)
|
||||
cmd_msg = "rsync_project(remote_dir={remote_dir}, " \
|
||||
"local_dir=local_dir, upload=upstream)".format(
|
||||
remote_dir=remote_dir,
|
||||
local_dir=local_dir,
|
||||
upstream=upstream)
|
||||
|
||||
print cmd_msg
|
||||
|
||||
# from fabric.contrib.project import rsync_project
|
||||
# rsync_project(remote_dir=remote_dir,
|
||||
# local_dir=local_dir,
|
||||
# upload=upstream)
|
||||
|
||||
|
||||
@task
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue