mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-25 19:45:05 +08:00
chore: Add an ugly script to deploy easily
This commit is contained in:
parent
806ed2cc33
commit
a8d2fbd3aa
21
deploy-ugly.sh
Normal file
21
deploy-ugly.sh
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#! /usr/bin/sh
|
||||||
|
|
||||||
|
# Notes
|
||||||
|
#
|
||||||
|
# $1 (First argument) must be the stop-worlds file (e.g. en.stopwords.txt)
|
||||||
|
#
|
||||||
|
# $2 (Second argument) must be the meta file name (e.g. relaxed-colden)
|
||||||
|
|
||||||
|
if [ $# -ne 2 ]; then
|
||||||
|
echo 'You must specify the stop-words file and the meta file name'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Kill all processes that have a connection on a given port
|
||||||
|
kill -9 $(lsof -ti :3030)
|
||||||
|
|
||||||
|
# Copy the binary to another place
|
||||||
|
cp raptor-http.bin /etc/raptor-http
|
||||||
|
|
||||||
|
# Run the server on the a specific port and in background
|
||||||
|
/etc/raptor-http -l 0.0.0.0:3030 --stop-words $1 $2 > /dev/null 2>&1 &
|
Loading…
Reference in New Issue
Block a user