mirror of
https://git.ari.lt/ari.lt/ari.lt.git
synced 2025-02-04 17:49:24 +01:00
17 lines
318 B
Bash
Executable file
17 lines
318 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 &
|
|
}
|
|
|
|
main "$@"
|