I have myfile.py
on my local machine.
I want to do something like:
from fabric.api import env, run
env.host_string = 'whatever.com'
def run_script():
run('python myfile.py')
but of course this returns can't open file 'myfile.py': [Errno 2] No such file or directory
How can I run this file remotely? Do i have put
on whatever.com
?
source
share