fabric appears to start apache2 but doesn't

后端 未结 6 609
不思量自难忘°
不思量自难忘° 2020-12-29 04:27

I\'m using fabric to remotely start a micro aws server, install git and a git repository, adjust apache config and then restart the server.

If at any point, from the

6条回答
  •  执念已碎
    2020-12-29 04:57

    Which version of fabric are you running?

    Have you tried to change the pty argument (try to change shell too, but it should not influence things)?

    http://docs.fabfile.org/en/1.0.1/api/core/operations.html#fabric.operations.run

    You can set the pty argument like this:

    sudo('service apache2 restart', pty=False)
    

提交回复
热议问题