Skip to content

Commit

Permalink
Actually run the SSH python invoke task instead of just printing it
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-vari committed Dec 5, 2024
1 parent 6d8ab7b commit e539f67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ def logs(c, service_name):
@task
def ssh(c):
"""SSH into prod"""
print(f"ssh root@{HOST}")
cmd = f"ssh root@{HOST}"
print(cmd)
c.run(cmd, pty=True)


@task
Expand Down

0 comments on commit e539f67

Please sign in to comment.