zarkpy
zarkpy相关问题
git clone
vim zark快捷键F1(快速重启) F2(检查bug的错误日志)
F1重启程序
duoduo@debian ...caadf/web/cgi % cat /usr/local/bin/launch-curr.py
#!/usr/bin/env python
#coding=utf8
# 你可能会使用zarkpy建立多个项目,此程序用于在vim中添加重新启动当前项目的快捷键
import sys, os
assert len(sys.argv) == 2
file_path = sys.argv[1]
print file_path
assert file_path.startswith('/home/duoduo/projects/')
project_name = file_path.partition('/home/duoduo/projects/')[2].partition('/')[0]
os.popen('/opt/%s/tool/launch-local.sh restart' % project_name) F2看错误
后台管理创建管理员
Last updated