meilisearch.sh
parent
95a66d1a18
commit
1e39a34c54
|
|
@ -1,2 +1,5 @@
|
||||||
**/*.sw*
|
**/*.sw*
|
||||||
**/__pycache__
|
**/__pycache__
|
||||||
|
/meilisearch
|
||||||
|
/scraped
|
||||||
|
/data.ms
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
if [ ! -f ./meilisearch ]; then
|
||||||
|
curl -L https://install.meilisearch.com | sh
|
||||||
|
fi
|
||||||
|
args=("$@")
|
||||||
|
if [ "${#args[@]}" == 0 ]; then
|
||||||
|
args=(--db-path $PWD/data.ms --http-addr 0.0.0.0:7700)
|
||||||
|
fi
|
||||||
|
exec ./meilisearch "${args[@]}"
|
||||||
Loading…
Reference in New Issue