diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 23 |
1 files changed, 13 insertions, 10 deletions
@@ -1,15 +1,15 @@ # LibreTranslate-init -Run LibreTranslate on Ubuntu 20.04. +Run [LibreTranslate](https://libretranslate.com) on Ubuntu 20.04. Uses [LibreTranslate WSGI](https://community.libretranslate.com/t/is-wsgi-currently-supported/24/3) with [Gunicorn and Nginx](https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-18-04). ``` -# Add argosopentech user -useradd argosopentech -mkdir /home/argosopentech -chown argosopentech:argosopentech /home/argosopentech -usermod -aG sudo argosopentech -su argosopentech +# Add libretranslate user +useradd libretranslate +mkdir /home/libretranslate +chown libretranslate:libretranslate /home/libretranslate +usermod -aG sudo libretranslate +su libretranslate # Add swap space (optional) sudo fallocate -l 10G /swapfile @@ -18,14 +18,17 @@ sudo mkswap /swapfile sudo swapon /swapfile sudo swapon --show -# Download and run LibreTranslate-init -git clone https://github.com/argosopentech/LibreTranslate-init.git ~/LibreTranslate-init +# Download LibreTranslate-init +git clone https://github.com/libretranslate/LibreTranslate-init.git ~/LibreTranslate-init -# Run LibreTranslate on port 5000 +# Download dependencies and run LibreTranslate on port 5000 ~/LibreTranslate-init/setup.sh # Run LibreTranslate WSGI with nginx and systemd ~/LibreTranslate-init/run.sh +# Check LibreTranslate status +sudo systemctl status libretranslate + ``` |