meilisearch.sh
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,2 +1,5 @@
|
|||||||
**/*.sw*
|
**/*.sw*
|
||||||
**/__pycache__
|
**/__pycache__
|
||||||
|
/meilisearch
|
||||||
|
/scraped
|
||||||
|
/data.ms
|
||||||
|
|||||||
10
meilisearch.sh
Normal file
10
meilisearch.sh
Normal 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[@]}"
|
||||||
Reference in New Issue
Block a user