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.
The problem is I want to have a html textarea in this console to be able to show the output of fabric commands.
Eg [myhostname] run: git pull origin master (in a textarea from ajax request)
Please help!
Thanks!
添加答案,这可以通过以下方式完成:
local('git pull capture=True')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.