mirror of
https://git.ari.lt/ari.lt/ari.lt.git
synced 2025-02-04 17:49:24 +01:00
add run.sh
Signed-off-by: Ari Archer <ari@ari.lt>
This commit is contained in:
parent
8ab5ca1f79
commit
1a97f34452
1 changed files with 14 additions and 0 deletions
14
run.sh
Executable file
14
run.sh
Executable 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 "$@"
|
Loading…
Add table
Reference in a new issue