We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 795fe72 commit 4400cd2Copy full SHA for 4400cd2
install/libretranslate-install.sh
@@ -43,6 +43,10 @@ $STD uv pip install "numpy<2"
43
$STD uv pip install .
44
$STD uv pip install libretranslate
45
$STD .venv/bin/python scripts/install_models.py
46
+
47
+cat <<EOF >/opt/libretranslate/.env
48
+LT_PORT=5000
49
+EOF
50
msg_ok "Installed LibreTranslate"
51
52
msg_info "Creating Service"
@@ -56,6 +60,7 @@ User=root
56
60
Type=idle
57
61
Restart=always
58
62
Environment="PATH=/usr/local/lib/python3.11/dist-packages/libretranslate"
63
+EnvironmentFile=/opt/libretranslate/.env
59
64
ExecStart=/opt/libretranslate/.venv/bin/python3 /opt/libretranslate/.venv/bin/libretranslate --host * --update-models
65
ExecReload=/bin/kill -s HUP
66
KillMode=mixed
0 commit comments