From 32ea9c6b15518ca313e45b91b66b16261757ec7a Mon Sep 17 00:00:00 2001 From: "P.J. Finlay" Date: Sat, 17 Jul 2021 16:06:46 +0000 Subject: Improvements --- setup.sh | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'setup.sh') 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 -- cgit v1.2.3