diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..49d134b --- /dev/null +++ b/run.sh @@ -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 "$@"