add run.sh

Signed-off-by: Ari Archer <ari@ari.lt>
This commit is contained in:
Arija A. 2024-06-06 17:37:26 +03:00
parent 8ab5ca1f79
commit 1a97f34452

14
run.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
set -u
main() {
kill -9 $(pgrep python3) || true
kill -9 $(pgrep memcached) || true
cd src
python3 -m pip install gunicorn
python3 -m gunicorn -b 127.0.0.1:8000 -w "$(nproc --all)" main:app &
}
main "$@"