ari.lt/run.sh
Arija A. b22feb09f6
remove .key after 10 seconds
Signed-off-by: Arija A. <ari@ari.lt>
2025-07-28 04:25:46 +03:00

21 lines
370 B
Bash
Executable file

#!/bin/sh
set -u
main() {
kill -9 $(pgrep python3) || true
kill -9 $(pgrep gunicorn) || true
kill -9 $(pgrep memcached) || true
memcached -d # -p 41923 -m 1024
source ari-lt.env
cd src
python3 -m pip install gunicorn
python3 -m gunicorn -b 127.0.0.1:17312 -w 4 main:app &
{
sleep 10
rm -f .key
} &
}
main "$@"