feat(*) accept kong-prefix instead of socket name

This commit replaces the `-socket` flag with `-kong-prefix` and
hardcodes the socket name, which is expected by Kong to be in the Kong
prefix.
This commit is contained in:
Guilherme Salazar
2020-01-06 12:46:19 -08:00
parent 53790d0342
commit da8ce4fa7e
2 changed files with 8 additions and 11 deletions

View File

@@ -12,14 +12,14 @@ rq --help >/dev/null
echo "pwd: $PWD"
SOCKET='sock'
SOCKET='go_pluginserver.sock'
if pgrep go-pluginserver -l; then
PREVIOUS_SERVER="yes"
else
echo "starting server..."
[ -S "$SOCKET" ] && rm "$SOCKET"
./go-pluginserver -socket "$SOCKET" &
./go-pluginserver -kong-prefix . &
pgrep go-pluginserver -l
sleep 0.1s
fi