главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
path: root/setup.sh
diff options
context:
space:
mode:
authorP.J. Finlay <pjappdevelopment@gmail.com>2021-07-17 16:06:46 +0000
committerP.J. Finlay <pjappdevelopment@gmail.com>2021-07-17 16:06:46 +0000
commit32ea9c6b15518ca313e45b91b66b16261757ec7a (patch)
tree08260a9b29fd29e412cbec5996b7f39df8c8562e /setup.sh
parent673998f7a1880ee9004099dc2ab9fc7f029742b9 (diff)
Improvements
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh17
1 files changed, 4 insertions, 13 deletions
diff --git a/setup.sh b/setup.sh
index 4126227..8743017 100755
--- a/setup.sh
+++ b/setup.sh
@@ -13,25 +13,16 @@ sudo apt-get install -y libicu-dev python3-icu pkg-config
sudo apt-get install -y nginx
# Download LibreTranslate source
-git clone https://github.com/argosopentech/LibreTranslate.git ~/LibreTranslate
+git clone https://github.com/LibreTranslate/LibreTranslate.git ~/LibreTranslate
# Setup virtualenv
virtualenv ~/LibreTranslate/env
source ~/LibreTranslate/env/bin/activate
-# Install LibreTranslate
-pip install -e ~/LibreTranslate/
-
# Install gunicorn
pip install gunicorn
-# Setup systemd
-sudo cp ~/LibreTranslate-init/libretranslate.service /etc/systemd/system/
-sudo systemctl start libretranslate
-sudo systemctl enable libretranslate
-
-# Configure Nginx
-sudo cp ~/LibreTranslate-init/nginx /etc/nginx/sites-available/default
-sudo nginx -t
-sudo systemctl restart nginx
+# Install and run LibreTranslate on port 5000
+pip install -e ~/LibreTranslate/
+libretranslate