其他分享
首页 > 其他分享> > hound + Alfred 打造快速搜代码流程

hound + Alfred 打造快速搜代码流程

作者:互联网

step 1

mkdir hound

step 2

cd hound

step 3

echo '{
    "max-concurrent-indexers" : 2,
    "dbpath" : "data",
    "title" : "Hound",
    "health-check-uri" : "/healthz",
    "repos" : {
        "docs" : {
            "url" : "git@git.example.com:jack/blog.git"
        },
        "is-docs-home-fe":{
            "url":"git@git.example.com:com:jack/home.git"
        }
    }
}' >> ./config.json

根据个人需要丰富 repos

step 4

docker run -d -p 6080:6080 --name hound -v $(pwd):/data etsy/hound

第一次初始化索引比较慢,需要确保docker中有访问gitlab的权限,否则建立索引会失败,因为拉取不了项目 docker中有访问gitlab的权限,就是配置ssh-keys的过程

step 5

open <http://localhost:6080/>

step6

在 Alfred 中配置快捷指令 cs 为 http://localhost:6080/?q={query}

 

标签:git,流程,Alfred,home,hound,com,6080
来源: https://blog.51cto.com/u_15166492/2714359