Skip to content

Commit

Permalink
Adds gen-hound-config
Browse files Browse the repository at this point in the history
  • Loading branch information
tomnomnom committed Sep 14, 2019
1 parent fddb7ac commit a8dd9c6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions scripts/gen-hound-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/bash

prefix=$(pwd)

echo '{'
echo ' "max-concurrent-indexers" : 8,'
echo ' "dbpath" : "data",'
echo ' "health-check-uri" : "/healthz",'
echo ' "repos" : {'


find . -name ".git" -type d -exec dirname {} \; | sed -r 's#^\./##' |
while read repo; do
echo " \"$repo\": {\"url\": \"file://$prefix/$repo\"},"
done

echo ' "_dummy": {}'
echo ' }'
echo '}'

0 comments on commit a8dd9c6

Please sign in to comment.