简体   繁体   English

使用结构进行 Django 部署

[英]Django deployment with fabric

I am trying to build a django-based web console for deploying my sites with fabric, in which there are dropdowns for different hosts(prod/stage) and different branches from git and able to select and submit to execute the fabric command accordingly.我正在尝试构建一个基于 django 的 Web 控制台,用于使用结构部署我的站点,其中有针对不同主机(prod/stage)和来自 git 的不同分支的下拉列表,并且能够选择和提交以相应地执行结构命令。

The problem is I want to have a html textarea in this console to be able to show the output of fabric commands.问题是我想在这个控制台中有一个 html textarea 能够显示结构命令的输出。

Eg [myhostname] run: git pull origin master (in a textarea from ajax request)例如 [myhostname] 运行:git pull origin master(在来自 ajax 请求的 textarea 中)

Please help!请帮忙!

Thanks!谢谢!

添加答案,这可以通过以下方式完成:

local('git pull capture=True')

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM