главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorP.J. Finlay <pjappdevelopment@gmail.com>2021-07-17 16:32:29 +0000
committerP.J. Finlay <pjappdevelopment@gmail.com>2021-07-17 16:32:29 +0000
commit27de0e82154390765d85c41589ebadd6dbcdfe7a (patch)
tree76fb90b01802c74203d707dde63c2cc0b15600ee /README.md
parent32ea9c6b15518ca313e45b91b66b16261757ec7a (diff)
Made username libretranslate
Diffstat (limited to 'README.md')
-rw-r--r--README.md23
1 files changed, 13 insertions, 10 deletions
diff --git a/README.md b/README.md
index f951875..ab76e9c 100644
--- a/README.md
+++ b/README.md
@@ -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
+
```