parent
9b40885d9f
commit
c244cc812d
|
@ -2,11 +2,11 @@
|
|||
[python]
|
||||
python3 = buster, bullseye, bionic, focal
|
||||
python3-pip = buster, bullseye, bionic, focal
|
||||
gunicorn = buster, bullseye, bionic, focal
|
||||
python3-gunicorn = buster, bullseye, bionic, focal
|
||||
python3-uvicorn = buster, bullseye, bionic, focal
|
||||
python3-httptools = buster, bullseye, bionic, focal
|
||||
python3-uvloop = buster, bullseye, bionic, focal
|
||||
gunicorn = buster, bullseye, focal
|
||||
python3-gunicorn = buster, bullseye, focal
|
||||
python3-uvicorn = buster, bullseye, focal
|
||||
python3-httptools = buster, bullseye, focal
|
||||
python3-uvloop = buster, bullseye, focal
|
||||
|
||||
[psycopg2]
|
||||
# See https://www.psycopg.org/docs/install.html#install-from-source
|
||||
|
|
9
install
9
install
|
@ -542,6 +542,15 @@ section "API"
|
|||
# shellcheck disable=SC2046
|
||||
install_packages $(list_packages "$SCRIPT_DIR/api")
|
||||
|
||||
# TODO: Remove when Bionic support is dropped
|
||||
if [[ $distro == "bionic" ]]; then
|
||||
info "installing gunicorn"
|
||||
$PIP install \
|
||||
'gunicorn' \
|
||||
'uvicorn>=0.16.0,<0.17'
|
||||
ln -sf /usr/local/bin/gunicorn /usr/bin/gunicorn
|
||||
fi
|
||||
|
||||
install_python_app "$SCRIPT_DIR/api[prod]"
|
||||
|
||||
install_service "libretime-api.service" "$SCRIPT_DIR/api/install/systemd/libretime-api.service"
|
||||
|
|
Loading…
Reference in New Issue