This repository has been archived on 2025-04-06. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
p.ari.lt/run.sh
Ari Archer 53af0dda17
wait for memcached
Signed-off-by: Ari Archer <ari@ari.lt>
2024-06-29 20:11:58 +03:00

17 lines
322 B
Bash
Executable file

#!/bin/sh
set -u
main() {
kill -9 $(pgrep python3) || true
kill -9 $(pgrep gunicorn) || true
kill -9 $(pgrep memcached) || true
cd src
memcached -m 1024 -p 52812 &
sleep 1
python3 -m pip install gunicorn
python3 -m gunicorn -b 127.0.0.1:52813 -w "$(nproc --all)" main:app &
}
main "$@"