added debugging to deploy.ssh
This commit is contained in:
parent
9c31d26156
commit
ba9b5875f2
1 changed files with 7 additions and 1 deletions
|
|
@ -727,6 +727,9 @@ def remove(full=True):
|
|||
def ssh():
|
||||
configuration = env.config
|
||||
|
||||
if env.debug:
|
||||
logger = loggify('deploy', 'ssh')
|
||||
|
||||
if configuration.project.ssh:
|
||||
cmd_ssh = "ssh {user}@{host} -i {sshkey}".format(
|
||||
user=configuration.project.user,
|
||||
|
|
@ -737,4 +740,7 @@ def ssh():
|
|||
user=configuration.project.user,
|
||||
host=configuration.project.host)
|
||||
|
||||
local(cmd_ssh)
|
||||
if env.debug:
|
||||
logger.debug("ssh command: %s" % cmd_ssh)
|
||||
else:
|
||||
local(cmd_ssh)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue