pip install fabric fab --version python from fabric import Connection python conn = Connection(host='your_remote_host', user='your_username', port=22, connect_kwargs={"password": "your_password"}) python from fabric import task @task def deploy(conn): conn.run('git pull origin master') conn.run('restart_application') python deploy(conn)


上一篇:
下一篇:
切换中文