meilisearch.sh

master
Bel LaPointe 2021-12-15 15:11:04 -07:00
parent 95a66d1a18
commit 1e39a34c54
2 changed files with 13 additions and 0 deletions

3
.gitignore vendored
View File

@ -1,2 +1,5 @@
**/*.sw*
**/__pycache__
/meilisearch
/scraped
/data.ms

10
meilisearch.sh Normal file
View File

@ -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[@]}"