How do I create a new file on a remote host in fabric (python deployment tool)?

前端 未结 4 833
别跟我提以往
别跟我提以往 2021-02-18 19:21

I\'d like to create a file with the name passenger_wsgi.py on a remote host. I\'d like to use the following string to create the file\'s content:

\'\'\'
import s         


        
4条回答
  •  孤城傲影
    2021-02-18 19:48

    You could use append() or upload_template() functions from fabric.contrib.files

提交回复
热议问题