1 Star 0 Fork 0

ehealth/faceapp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
manage.py 789 Bytes
一键复制 编辑 原始数据 按行查看 历史
silence 提交于 2017-04-21 11:03 . ''返回字典''
#!/usr/bin/env python
# -*- coding:utf-8 -*-
'''
@time: 2017/4/13 15:40
@author: Silence
'''
from fabric.api import *
from fabric.colors import *
env.hosts = ['117.114.138.52:10125']
env.user = 'root'
env.password = 'passw0rd'
def hello():
print 'hello world!'
def hillo(name,value):
print '%s = %s!'%(name,value)
def isFab():
local('cd D:')
local('dir')
def show():
print green('success')
print red('fail')
print yellow('yellow')
def test():
with cd('/root'):
run('du -sh')
def deploy():
with cd('/root/workspace/faceapp'):
run('git pull')
sudo('supervisorctl restart faceapp')
sudo('supervisorctl status')
def git(c):
local('git add .')
local("git commit -m'%s'" % c)
local('git push origin master')
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/researchimage/faceapp.git
git@gitee.com:researchimage/faceapp.git
researchimage
faceapp
faceapp
master

搜索帮助