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
|
remote_dir = dynamic_dst
|
||||||
local_dir = dynamic_src
|
local_dir = dynamic_src
|
||||||
upstream = True
|
upstream = True
|
||||||
configuration_dst = initialize.environment(
|
# configuration_dst = initialize.environment(
|
||||||
destination_branch)
|
# destination_branch)
|
||||||
|
|
||||||
print "\ncopy from {src} to {dst}\n".format(
|
print "\ncopy from {src} to {dst}\n".format(
|
||||||
src=configuration_src.project.host,
|
src=configuration_src.project.host,
|
||||||
|
|
@ -411,10 +411,18 @@ def media(destination_branch):
|
||||||
print_console("no moving media files from staging to production")
|
print_console("no moving media files from staging to production")
|
||||||
return
|
return
|
||||||
|
|
||||||
from fabric.contrib.project import rsync_project
|
cmd_msg = "rsync_project(remote_dir={remote_dir}, " \
|
||||||
rsync_project(remote_dir=remote_dir,
|
"local_dir=local_dir, upload=upstream)".format(
|
||||||
|
remote_dir=remote_dir,
|
||||||
local_dir=local_dir,
|
local_dir=local_dir,
|
||||||
upload=upstream)
|
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
|
@task
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue