DWQA QuestionsCategory: ServerDoes fabric support running Python functions on remote servers?
dzm asked 2 years ago

Fabric uses run to execute server commands. Can it let Python functions execute on the remote server as well? How to operate it?

1 Answers
crosstime answered 2 years ago
with cd('/root/haha'):
    put('xxx.py')
    run('python xxx.py')